Szerkesztés

Megosztás a következőn keresztül:


XmlnsDictionary.LookupPrefix(String) Method

Definition

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

Parameters

xmlNamespace
String

The XAML namespace URI to look up.

Returns

The XML prefix that corresponds to the given namespace; otherwise, null.

Exceptions

xmlNamespace is null.

Remarks

If you request the prefix for the default namespace, an empty string is returned.

Applies to