Dictionary<TKey,TValue>.KeyCollection.Count 屬性

定義

取得 Dictionary<TKey,TValue>.KeyCollection 中所包含的項目數。

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

屬性值

Dictionary<TKey,TValue>.KeyCollection 中所包含的項目數。

擷取這個屬性的值是一種 O(1) 運算。

實作

適用於