Export (0) Print
Expand All

XPathNavigator.LookupPrefix Method

Gets the prefix declared for the specified namespace URI.

Namespace:  System.Xml.XPath
Assembly:  System.Xml.XPath (in System.Xml.XPath.dll)

public virtual string LookupPrefix(
	string namespaceURI
)

Parameters

namespaceURI
Type: System.String
The namespace URI to resolve for the prefix.

Return Value

Type: System.String
A String that contains the namespace prefix assigned to the namespace URI specified; otherwise, String.Empty if no prefix is assigned to the namespace URI specified. The String returned is atomized.

Implements

IXmlNamespaceResolver.LookupPrefix(String)

Silverlight

Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft