ConcurrentDictionary<TKey,TValue>.GetAlternateLookup<TAlternateKey> Yöntem

Tanım

bir ConcurrentDictionary<TKey,TValue> işlem gerçekleştirmek için kullanılabilecek bir türün örneğini alır

TKeyyerine anahtar olarak TAlternateKey kullanma.

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)

Tür Parametreleri

TAlternateKey

Arama yapmak için alternatif bir anahtar türü.

Döndürülenler

Oluşturulan arama örneği.

Özel durumlar

Bu örneğin karşılaştırıcısı TAlternateKeyile uyumlu değil.

Açıklamalar

Bu örnek ile IAlternateEqualityComparer<TAlternate,T> uygulayan bir karşılaştırıcı kullanıyor olmalıdır

TAlternateKey ve TKey. Aksi takdirde bir özel durum oluşturulur.

Şunlara uygulanır