This documentation is archived and is not being maintained.

XPathNavigator.MoveToFirstNamespace Method

Moves the XPathNavigator to the first namespace node of the current element.

Overload List

Moves the XPathNavigator to first namespace node of the current element.

Note   The XPathNavigator class returns namespace nodes in reverse document order. Therefore, MoveToFirstNamespace essentially moves to the last namespace node, currently in scope.
[Visual Basic] Overloads Public Function MoveToFirstNamespace() As Boolean
[C#] public bool MoveToFirstNamespace();
[C++] public: bool MoveToFirstNamespace();
[JScript] public function MoveToFirstNamespace() : Boolean;

Moves the XPathNavigator to the first namespace node matching the XPathNamespaceScope specified.

Note[note] The XPathNavigator class returns namespace nodes in reverse document order. Therefore, MoveToFirstNamespace essentially moves to the last namespace node, currently in scope.

[Visual Basic] Overloads Public MustOverride Function MoveToFirstNamespace(XPathNamespaceScope) As Boolean
[C#] public abstract bool MoveToFirstNamespace(XPathNamespaceScope);
[C++] public: virtual bool MoveToFirstNamespace(XPathNamespaceScope) = 0;
[JScript] public abstract function MoveToFirstNamespace(XPathNamespaceScope) : Boolean;

See Also

XPathNavigator Class | XPathNavigator Members | System.Xml.XPath Namespace

Show: