ConcurrentDictionary<TKey,TValue>.GetAlternateLookup<TAlternateKey> メソッド

定義

ConcurrentDictionary<TKey,TValue>ではなくキーとしてTAlternateKeyを使用してTKeyに対する操作を実行するために使用できる型のインスタンスを取得します。

public:
generic <typename TAlternateKey>
 System::Collections::Concurrent::ConcurrentDictionary<TKey, TValue>::AlternateLookup<TAlternateKey> GetAlternateLookup();
public System.Collections.Concurrent.ConcurrentDictionary<TKey,TValue>.AlternateLookup<TAlternateKey> GetAlternateLookup<TAlternateKey>() where TAlternateKey : allows ref struct;
member this.GetAlternateLookup : unit -> System.Collections.Concurrent.ConcurrentDictionary<'Key, 'Value>.AlternateLookup<'AlternateKey>
Public Function GetAlternateLookup(Of TAlternateKey) () As ConcurrentDictionary(Of TKey, TValue).AlternateLookup(Of TAlternateKey)

型パラメーター

TAlternateKey

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

返品

作成された参照インスタンス。

例外

このインスタンスの比較子は、 TAlternateKeyと互換性がありません。

注釈

このインスタンスは、TAlternateKeyTKeyとのIAlternateEqualityComparer<TAlternate,T>を実装する比較子を使用している必要があります。 そうでない場合は、例外がスローされます。

適用対象