HashSet<T>.TryGetAlternateLookup<TAlternate> メソッド

定義

Tではなく、TAlternateを使用して現在のHashSet<T>に対する操作を実行するために使用できる型のインスタンスを取得します。

public:
generic <typename TAlternate>
 bool TryGetAlternateLookup([Runtime::InteropServices::Out] System::Collections::Generic::HashSet<T>::AlternateLookup<TAlternate> % lookup);
public bool TryGetAlternateLookup<TAlternate>(out System.Collections.Generic.HashSet<T>.AlternateLookup<TAlternate> lookup) where TAlternate : allows ref struct;
member this.TryGetAlternateLookup : AlternateLookup -> bool
Public Function TryGetAlternateLookup(Of TAlternate) (ByRef lookup As HashSet(Of T).AlternateLookup(Of TAlternate)) As Boolean

型パラメーター

TAlternate

参照を実行するためのインスタンスの代替型。

パラメーター

lookup
HashSet<T>.AlternateLookup<TAlternate>

メソッドが true を返すときに作成された参照インスタンス、またはメソッドが false を返す場合に使用しない既定のインスタンス。

返品

true ルックアップを作成できる場合。それ以外の場合は false

注釈

セットでは、TAlternateTIAlternateEqualityComparer<TAlternate,T>を実装する比較子を使用する必要があります。 そうでない場合、メソッドは falseを返します。

適用対象