ConcurrentDictionary<TKey,TValue>.IDictionary.Item[Object] プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定したキーに関連付けられている値を取得または設定します。
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がkeyのキー型に割り当てられない型の場合にConcurrentDictionary<TKey,TValue>。
実装
例外
key は nullです。
値が割り当てられ、 key は、 ConcurrentDictionary<TKey,TValue>のキー型または値型に割り当てられない型です。