ImmutableHashSet<T>.Builder.TryGetValue(T, T) 方法

定義

搜尋指定值的資料集,並傳回所找到的相等值 (如果有的話)。

public:
 bool TryGetValue(T equalValue, [Runtime::InteropServices::Out] T % actualValue);
public bool TryGetValue (T equalValue, out T actualValue);
member this.TryGetValue : 'T * 'T -> bool
Public Function TryGetValue (equalValue As T, ByRef actualValue As T) As Boolean

參數

equalValue
T

要搜尋的值。

actualValue
T

搜尋找到的資料集中的值,如果搜尋找不到相符項目,則為原始的值。

傳回

指出搜尋是否成功的值。

適用於