XmlnsDictionary.LookupPrefix(String) Méthode
Définition
Retourne le préfixe qui correspond à l'URI d'espace de noms XAML spécifié.Returns the prefix that corresponds to the specified XAML namespace URI.
public:
System::String ^ LookupPrefix(System::String ^ xmlNamespace);
public string LookupPrefix (string xmlNamespace);
member this.LookupPrefix : string -> string
Public Function LookupPrefix (xmlNamespace As String) As String
Paramètres
- xmlNamespace
- String
URI d'espace de noms XAML à rechercher.The XAML namespace URI to look up.
Retours
Préfixe XML qui correspond à l'espace de noms donné ; sinon, null
.The XML prefix that corresponds to the given namespace; otherwise, null
.
Exceptions
xmlNamespace
a la valeur null
.xmlNamespace
is null
.
Remarques
Si vous demandez le préfixe de l’espace de noms par défaut, une chaîne vide est retournée.If you request the prefix for the default namespace, an empty string is returned.