FrozenDictionary<TKey,TValue>.AlternateLookup<TAlternateKey> 結構

定義

提供可用於在 FrozenDictionary<TKey,TValue> 上執行作業的類型

使用 TAlternateKey 做為索引鍵,而不是使用 TKey

public: generic <typename TAlternateKey>
value class FrozenDictionary<TKey, TValue>::AlternateLookup
public readonly struct FrozenDictionary<TKey,TValue>.AlternateLookup<TAlternateKey>
type FrozenDictionary<'Key, 'Value>.AlternateLookup<'AlternateKey> = struct
Public Structure FrozenDictionary(Of TKey, TValue).AlternateLookup(Of TAlternateKey)

類型參數

TKey
TValue
TAlternateKey

執行查閱之索引鍵的替代類型。

繼承
FrozenDictionary<TKey,TValue>.AlternateLookup<TAlternateKey>

屬性

Dictionary

取得這個實例執行作業的 FrozenDictionary<TKey,TValue>

Item[TAlternateKey]

取得或設定與指定替代索引鍵相關聯的值。

方法

ContainsKey(TAlternateKey)

判斷 FrozenDictionary<TKey,TValue> 是否包含指定的替代索引鍵。

TryGetValue(TAlternateKey, TValue)

取得與指定替代索引鍵相關聯的值。

適用於