MoveToNamespace Method

XPathNavigator.MoveToNamespace Method

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)

public virtual bool MoveToNamespace(
	string 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.


Supported in: 5, 4

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

Aggiunte alla community

© 2016 Microsoft