This documentation is archived and is not being maintained.

IVsaItems.Count Property

Gets the number of items in the specified collection.

[Visual Basic]
ReadOnly Property Count As Integer
int Count {get;}
__property int get_Count();
function get Count() : int;

Property Value

Returns the integer value for the number of items in the collection.


Items in the collection must be indexed on a 0-based system that results in an index ranging from 0 to n-1, where n is value of the Count property.

The engine must not be closed and the engine must be initialized in order for this property to be retrieved.

The following table shows the exceptions that the Count property can throw.

Exception Type Condition
EngineClosed The IVsaEngine.Close method has been called and the engine is closed.
EngineNotInitialized The engine has not been initialized.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

IVsaItems Interface | IVsaItems Members | Microsoft.Vsa Namespace