XmlnsDictionary.LookupPrefix(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.