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 介面時,才能使用這個成員。

適用於