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


XPathNavigator.LookupNamespace Method

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

Gets the namespace URI for the specified prefix.

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

Syntax

'Declaration
Public Overridable Function LookupNamespace ( _
    prefix As String _
) As String
public virtual string LookupNamespace(
    string prefix
)

Parameters

  • prefix
    Type: System.String
    The prefix whose namespace URI you want to resolve. To match the default namespace, pass String.Empty.

Return Value

Type: System.String
A String that contains the namespace URI assigned to the namespace prefix specified; nulla null reference (Nothing in Visual Basic) if no namespace URI is assigned to the prefix specified. The String returned is atomized.

Implements

IXmlNamespaceResolver.LookupNamespace(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.