ConcurrentDictionary<TKey,TValue>.Count ConcurrentDictionary<TKey,TValue>.Count ConcurrentDictionary<TKey,TValue>.Count ConcurrentDictionary<TKey,TValue>.Count Property

定義

取得 ConcurrentDictionary<TKey,TValue> 中所包含的索引鍵/值組數目。Gets the number of key/value pairs contained in the 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> 中所包含的索引鍵/值組數目。The number of key/value pairs contained in the ConcurrentDictionary<TKey,TValue>.

實作

例外狀況

字典已經包含項目數目上限 (MaxValue)。The dictionary already contains the maximum number of elements (MaxValue).

備註

這個屬性具有快照集的語意,而且表示中的項目數System.Collections.Concurrent.ConcurrentDictionary<TKey,TValue>目前存取此屬性。This property has snapshot semantics and represents the number of items in the System.Collections.Concurrent.ConcurrentDictionary<TKey,TValue> at the moment when the property was accessed.

適用於

另請參閱