ReadOnlyDictionary<TKey,TValue>.ContainsKey(TKey) Méthode

Définition

Détermine si le dictionnaire 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é à rechercher dans le dictionnaire.

Retours

true si le dictionnaire contient un élément ayant la clé spécifiée ; sinon, false.

Implémente

S’applique à