NameScope.ContainsKey(String) 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.
Retourne si un nom fourni existe déjà dans ce NameScopefichier .
public:
virtual bool ContainsKey(System::String ^ key);
public bool ContainsKey(string key);
abstract member ContainsKey : string -> bool
override this.ContainsKey : string -> bool
Public Function ContainsKey (key As String) As Boolean
Paramètres
- key
- String
Clé de chaîne à rechercher.
Retours
true si le spécifié key identifie un nom pour un mappage existant dans ce NameScopefichier .
false si le paramètre spécifié key n’existe pas dans le fichier actif NameScope.
Implémente
Exceptions
key a la valeur null.
Remarques
Les noms d’un namescope XAML doivent utiliser une grammaire particulière qui limite les chaînes que vous pouvez utiliser pour les entrées de l’API NameScope . Voir XamlName Grammar.