XmlnsDictionary.LookupPrefix(String) Méthode

Définition

Retourne le préfixe qui correspond à l'URI d'espace de noms XAML spécifié.

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.

Retours

Préfixe XML qui correspond à l'espace de noms donné ; sinon, null.

Exceptions

xmlNamespace a la valeur null.

Remarques

Si vous demandez le préfixe pour l’espace de noms par défaut, une chaîne vide est retournée.

S’applique à