Share via


XPathNavigator.MoveToNamespace Method

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

Moves the XPathNavigator to the namespace node with the specified namespace prefix.

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

Syntax

'Declaration
Public Overridable Function MoveToNamespace ( _
    name As String _
) As Boolean
public virtual bool MoveToNamespace(
    string name
)

Parameters

  • name
    Type: System.String
    The namespace prefix of the namespace node.

Return Value

Type: System.Boolean
true if the XPathNavigator is successful moving to the specified namespace; false if a matching namespace node was not found, or if the XPathNavigator is not positioned on an element node. If false, the position of the XPathNavigator is unchanged.

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.