Array.ICollection.Count Property

Definition

取得 Array 中的元素數目。Gets the number of elements contained in the 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

Property Value

Int32

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

Implements

Remarks

這個成員是明確的介面成員實作。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.

Applies to