ConcurrentDictionary<TKey,TValue>.IDictionary.Item[Object] プロパティ

定義

指定されたキーに関連付けられている値を取得または設定します。

property System::Object ^ System::Collections::IDictionary::Item[System::Object ^] { System::Object ^ get(System::Object ^ key); void set(System::Object ^ key, System::Object ^ value); };
object System.Collections.IDictionary.Item[object key] { get; set; }
object? System.Collections.IDictionary.Item[object key] { get; set; }
member this.System.Collections.IDictionary.Item(obj) : obj with get, set
 Property Item(key As Object) As Object Implements IDictionary.Item

パラメーター

key
Object

取得または設定する値のキー。

プロパティ値

指定したキーに関連付けられた値。または null がディクショナリにない場合、または key が のキー型に割り当てられない型のConcurrentDictionary<TKey,TValue>場合keyは 。

実装

例外

keynullです。

値を代入しようとしていますが、key は、ConcurrentDictionary<TKey,TValue> のキーの型または値型に代入できない型です。

適用対象

こちらもご覧ください