Array.ICollection.Count 属性

定义

获取 Array 中包含的元素数。Gets the number of elements contained in the Array.

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

属性值

集合中包含的元素数。The number of elements contained in the collection.

实现

注解

此成员是显式接口成员实现。This member is an explicit interface member implementation. 它只能在 Array 实例被强制转换为 ICollection 接口时使用。It can be used only when the Array instance is cast to an ICollection interface.

适用于