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
.
S’applique à
Voir aussi
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de l’année 2024, nous abandonnerons progressivement le mécanisme de retour d’information GitHub Issues pour le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultez :Soumettre et afficher des commentaires pour