FrozenDictionary<TKey,TValue>.Item[TKey] 屬性

定義

取得與指定索引鍵相關聯之值的參考。

public:
 property TValue& ^ default[TKey] { TValue& ^ get(TKey key); };
public ref readonly TValue this[TKey key] { get; }
member this.Item('Key) : 'Value
Default Public ReadOnly Property Item(key As TKey) As TValue

參數

key
TKey

要取得之值的索引鍵。

屬性值

TValue

與指定索引鍵相關聯的值參考。

例外狀況

key 不存在於集合中。

適用於