ConcurrentDictionary<TKey,TValue>.GetAlternateLookup<TAlternateKey> Método

Definição

Obtém uma instância de um tipo que pode ser usada para realizar operações em um ConcurrentDictionary<TKey,TValue> usando a TAlternateKey como chave em vez de um 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)

Parâmetros de Tipo Genérico

TAlternateKey

O tipo alternativo de chave para realizar pesquisas.

Devoluções

A instância de pesquisa criada.

Exceções

O comparador desta instância não é compatível com TAlternateKey.

Observações

Esta instância deve estar a usar um comparador que implemente IAlternateEqualityComparer<TAlternate,T> com TAlternateKey e TKey. Se não acontecer, será lançada uma exceção.

Aplica-se a