ImmutableDictionary<TKey,TValue>.Item[TKey] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會取得與指定金鑰相關的 。TValue
public:
property TValue default[TKey] { TValue get(TKey key); };
public TValue this[TKey key] { get; }
member this.Item('Key) : 'Value
Default Public ReadOnly Property Item(key As TKey) As TValue
參數
- key
- TKey
索引鍵的類型。
屬性值
TValue
與指定鍵相關聯的值。 若未找到結果,該操作會拋出例外。