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 インターフェイスにキャストされる場合のみ、使用できます。

適用対象