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

已設定該屬性。

適用於