ConcurrentDictionary<TKey,TValue>.ContainsKey(TKey) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Détermine si ConcurrentDictionary<TKey,TValue> contient la clé spécifiée.
public:
virtual bool ContainsKey(TKey key);
public bool ContainsKey (TKey key);
abstract member ContainsKey : 'Key -> bool
override this.ContainsKey : 'Key -> bool
Public Function ContainsKey (key As TKey) As Boolean
Paramètres
- key
- TKey
Clé à rechercher dans ConcurrentDictionary<TKey,TValue>.
Retours
true si ConcurrentDictionary<TKey,TValue> contient un élément correspondant à la clé spécifiée ; sinon, false.
Implémente
Exceptions
key a la valeur null.