ConcurrentDictionary<TKey,TValue>.Count 屬性

定義

取得 ConcurrentDictionary<TKey,TValue> 中所包含的索引鍵/值組數目。

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

屬性值

ConcurrentDictionary<TKey,TValue> 中所包含的索引鍵/值組數目。

實作

例外狀況

目錄包含太多項目。

備註

這個屬性具有快照式語意,代表存取屬性時,在中的項目 System.Collections.Concurrent.ConcurrentDictionary<TKey,TValue> 數目。

適用於

另請參閱