Share via


ICollection.Count Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the number of elements contained in the Array.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Private ReadOnly Property Count As Integer
    Implements ICollection.Count
int ICollection.Count { get; }
private:
virtual property int Count {
    int get () sealed = ICollection::Count::get;
}
private abstract Count : int with get
private override Count : int with get
JScript does not support explicit interface implementations.

Property Value

Type: System. . :: . .Int32
The number of elements contained in the T:System.Collections.ICollection.

Implements

ICollection. . :: . .Count

Remarks

This member is an explicit interface member implementation. It can be used only when the Array instance is cast to an T:System.Collections.ICollection interface.

.NET Framework Security

See Also

Reference

Array Class

System Namespace