Hashtable.Count 屬性

定義

取得 Hashtable 中所包含的索引鍵/值組數目。Gets the number of key/value pairs contained in the Hashtable.

public:
 virtual property int Count { int get(); };
public virtual int Count { get; }
member this.Count : int
Public Overridable ReadOnly Property Count As Integer

屬性值

Int32

Hashtable 中所包含的索引鍵/值組數目。The number of key/value pairs contained in the Hashtable.

實作

備註

抓取這個屬性的值是一項作業 O(1)Retrieving the value of this property is an O(1) operation.

適用於