ReadOnlyDictionary<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

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

プロパティ値

指定したキーを持つ要素。

実装

例外

keynullです。

プロパティが設定されています。

-又は-

プロパティが設定され、 key コレクションに存在せず、ディクショナリのサイズが固定されています。

注釈

このメンバーは、明示的なインターフェイス メンバーの実装です。 ReadOnlyDictionary<TKey,TValue> インスタンスがIDictionary インターフェイスにキャストされている場合にのみ使用できます。

適用対象