Dictionary<TKey,TValue>.AlternateLookup<TAlternateKey> 構造体

定義

TKeyの代わりにキーとして TAlternateKey を使用して Dictionary<TKey,TValue> に対する操作を実行するために使用できる型を提供します。

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

型パラメーター

TKey
TValue
TAlternateKey

検索を実行するためのキーの代替型。

継承
Dictionary<TKey,TValue>.AlternateLookup<TAlternateKey>

プロパティ

Dictionary

このインスタンスが操作を実行する対象の Dictionary<TKey,TValue> を取得します。

Item[TAlternateKey]

指定した代替キーに関連付けられている値を取得または設定します。

メソッド

ContainsKey(TAlternateKey)

指定した代替キーが Dictionary<TKey,TValue> に含まれているかどうかを判断します。

Remove(TAlternateKey)

指定した代替キーを持つ値を Dictionary<TKey,TValue>から削除します。

Remove(TAlternateKey, TKey, TValue)

指定した代替キーを持つ値を Dictionary<TKey,TValue>から削除し、要素を value パラメーターにコピーします。

TryAdd(TAlternateKey, TValue)

指定したキーと値をディクショナリに追加しようとします。

TryGetValue(TAlternateKey, TKey, TValue)

指定した代替キーに関連付けられている値を取得します。

TryGetValue(TAlternateKey, TValue)

指定した代替キーに関連付けられている値を取得します。

適用対象