Partilhar via


XPathNavigator.GetNamespace Method

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

Returns the value of the namespace node corresponding to the specified local name.

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

Syntax

'Declaration
Public Overridable Function GetNamespace ( _
    name As String _
) As String
public virtual string GetNamespace(
    string name
)

Parameters

Return Value

Type: System.String
A String that contains the value of the namespace node; String.Empty if a matching namespace node is not found, or if the XPathNavigator is not positioned on an element node.

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.