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

定義

指定したキーを持つ要素を取得します。

property TValue System::Collections::Generic::IDictionary<TKey,TValue>::Item[TKey] { TValue get(TKey key); void set(TKey key, TValue value); };
TValue System.Collections.Generic.IDictionary<TKey,TValue>.Item[TKey key] { get; set; }
member this.System.Collections.Generic.IDictionary<TKey,TValue>.Item('Key) : 'Value with get, set
 Property Item(key As TKey) As TValue Implements IDictionary(Of TKey, TValue).Item

パラメーター

key
TKey

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

プロパティ値

TValue

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

実装

例外

keynullです。

プロパティは取得されますが、key が見つかりません。

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

適用対象