OrderedDictionary<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 le IDictionary<TKey,TValue> contient un élément avec 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é à localiser dans le IDictionary<TKey,TValue>.
Retours
true si le IDictionary<TKey,TValue> contient un élément avec la clé ; sinon, false.