Array.ICollection.Count 属性

定义

获取 Array 中包含的元素数。

property int System::Collections::ICollection::Count { int get(); };
int System.Collections.ICollection.Count { get; }
member this.System.Collections.ICollection.Count : int
 ReadOnly Property Count As Integer Implements ICollection.Count

属性值

Int32

集合中包含的元素数。

实现

注解

此成员是显式接口成员的实现。 它只能在 Array 实例被强制转换为 ICollection 接口时使用。

适用于