IImmutableDictionary<TKey,TValue>.Contains Metod

Definition

Avgör om den oföränderliga ordlistan innehåller det angivna nyckel/värde-paret.

public:
 bool Contains(System::Collections::Generic::KeyValuePair<TKey, TValue> pair);
public bool Contains(System.Collections.Generic.KeyValuePair<TKey,TValue> pair);
abstract member Contains : System.Collections.Generic.KeyValuePair<'Key, 'Value> -> bool
Public Function Contains (pair As KeyValuePair(Of TKey, TValue)) As Boolean

Parametrar

pair
KeyValuePair<TKey,TValue>

Nyckel/värde-paret som ska hittas.

Returer

trueom det angivna nyckel/värde-paret finns i ordlistan; annars . false

Gäller för