ConcurrentDictionary<TKey,TValue>.TryGetAlternateLookup<TAlternateKey> 메서드

정의

ConcurrentDictionary<TKey,TValue>대신 키로 TAlternateKey 사용하여 TKey 작업을 수행하는 데 사용할 수 있는 형식의 인스턴스를 가져옵니다.

public:
generic <typename TAlternateKey>
 bool TryGetAlternateLookup([Runtime::InteropServices::Out] System::Collections::Concurrent::ConcurrentDictionary<TKey, TValue>::AlternateLookup<TAlternateKey> % lookup);
public bool TryGetAlternateLookup<TAlternateKey>(out System.Collections.Concurrent.ConcurrentDictionary<TKey,TValue>.AlternateLookup<TAlternateKey> lookup) where TAlternateKey : allows ref struct;
member this.TryGetAlternateLookup : AlternateLookup -> bool
Public Function TryGetAlternateLookup(Of TAlternateKey) (ByRef lookup As ConcurrentDictionary(Of TKey, TValue).AlternateLookup(Of TAlternateKey)) As Boolean

형식 매개 변수

TAlternateKey

조회를 수행하기 위한 키의 대체 형식입니다.

매개 변수

lookup
ConcurrentDictionary<TKey,TValue>.AlternateLookup<TAlternateKey>

메서드가 반환될 때 생성된 조회 인스턴스이거나 메서드가 반환truefalse되는 경우 사용해서는 안 되는 기본 인스턴스입니다.

반품

조회를 만들 수 있으면

설명

이 인스턴스는 와 함께 TAlternateKeyTKey구현 IAlternateEqualityComparer<TAlternate,T> 하는 비교자를 사용해야 합니다. 그렇지 않으면 메서드가 반환 false됩니다.

적용 대상