ConcurrentDictionary<TKey,TValue>.Count 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得包含在 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> 項目數量。