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>

适用于

另请参阅