Поделиться через


XPathNavigator.LookupPrefix Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the prefix declared for the specified namespace URI.

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

Syntax

'Declaration
Public Overridable Function LookupPrefix ( _
    namespaceURI As String _
) As String
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)

Version Information

Silverlight

Supported in: 5, 4

Platforms

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