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

Definición

Obtiene una instancia de un tipo que se puede usar para realizar operaciones en un ConcurrentDictionary<TKey,TValue>

usar un TAlternateKey como clave en lugar de un 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> ();
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

TAlternateKey

Tipo alternativo de una clave para realizar búsquedas.

Devoluciones

Instancia de búsqueda creada.

Excepciones

El comparador de esta instancia no es compatible con TAlternateKey.

Comentarios

Esta instancia debe usar un comparador que implemente IAlternateEqualityComparer<TAlternate,T> con

TAlternateKey y TKey. Si no es así, se producirá una excepción.

Se aplica a