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

屬性值

集合中包含的元素數量。

實作

備註

此成員為明確介面成員實作。 它只能在實 Array 例投射到 ICollection 介面時使用。

適用於