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

適用対象

こちらもご覧ください