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

定義

ConcurrentDictionary<TKey,TValue>ではなくキーとしてTAlternateKeyを使用してTKeyに対する操作を実行するために使用できる型を提供します。

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

型パラメーター

TKey

ディクショナリ内のキーの型。

TValue

ディクショナリ内の値の型。

TAlternateKey

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

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

プロパティ

名前 説明
Dictionary

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

Item[TAlternateKey]

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

メソッド

名前 説明
ContainsKey(TAlternateKey)

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

TryAdd(TAlternateKey, TValue)

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

TryGetValue(TAlternateKey, TKey, TValue)

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

TryGetValue(TAlternateKey, TValue)

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

TryRemove(TAlternateKey, TKey, TValue)

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

TryRemove(TAlternateKey, TValue)

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

適用対象