Gets the number of elements in the collection.
Public ReadOnly Property Count As Integer
Dim instance As ConfigurationElementCollection Dim value As Integer value = instance.Count
public int Count { get; }
public: virtual property int Count { int get () sealed; }
public final function get Count () : int
The following code example shows how to get the Count property in a custom element collection.
Public Shadows ReadOnly Property Count() As Integer Get Return MyBase.Count End Get End Property
public new int Count { get { return base.Count; } }
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98