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> 内の項目の数を表します。

適用対象

こちらもご覧ください