ImmutableDictionary<TKey,TValue>.Contains Méthode

Définition

Détermine si ce dictionnaire immuable contient la paire clé/valeur spécifiée.

public:
 virtual 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
override this.Contains : System.Collections.Generic.KeyValuePair<'Key, 'Value> -> bool
Public Function Contains (pair As KeyValuePair(Of TKey, TValue)) As Boolean

Paramètres

pair
KeyValuePair<TKey,TValue>

Paire clé/valeur à rechercher.

Retours

true si la paire clé/valeur spécifiée est trouvée dans le dictionnaire ; sinon, false.

Implémente

S’applique à