Muokkaa

Jaa


XPathNavigator.MoveToNextNamespace Method

Definition

Moves the XPathNavigator to the next namespace node.

Overloads

MoveToNextNamespace()

Moves the XPathNavigator to the next namespace node.

MoveToNextNamespace(XPathNamespaceScope)

When overridden in a derived class, moves the XPathNavigator to the next namespace node matching the XPathNamespaceScope specified.

MoveToNextNamespace()

Source:
XPathNavigator.cs
Source:
XPathNavigator.cs
Source:
XPathNavigator.cs

Moves the XPathNavigator to the next namespace node.

public:
 bool MoveToNextNamespace();
public bool MoveToNextNamespace ();
member this.MoveToNextNamespace : unit -> bool
Public Function MoveToNextNamespace () As Boolean

Returns

true if the XPathNavigator is successful moving to the next namespace node; otherwise, false. If false, the position of the XPathNavigator is unchanged.

Remarks

The XPathNavigator class returns namespace nodes in reverse document order. Therefore, MoveToNextNamespace essentially moves to the namespace node above the one in the current scope.

If the XPathNavigator is not currently positioned on a namespace node, this method returns false and the position of the XPathNavigator does not change.

When the XPathNavigator is positioned on a namespace node, the methods MoveToNext, MoveToPrevious, and MoveToFirst are not applicable. These methods always return false and do not change the position of the XPathNavigator.

After the XPathNavigator is positioned on an namespace node, call MoveToParent to move back to the element node.

For a definition of namespace nodes, see section 5.4 of the W3C XML Path Language (XPath) recommendation.

See also

Applies to

MoveToNextNamespace(XPathNamespaceScope)

Source:
XPathNavigator.cs
Source:
XPathNavigator.cs
Source:
XPathNavigator.cs

When overridden in a derived class, moves the XPathNavigator to the next namespace node matching the XPathNamespaceScope specified.

public:
 abstract bool MoveToNextNamespace(System::Xml::XPath::XPathNamespaceScope namespaceScope);
public abstract bool MoveToNextNamespace (System.Xml.XPath.XPathNamespaceScope namespaceScope);
abstract member MoveToNextNamespace : System.Xml.XPath.XPathNamespaceScope -> bool
Public MustOverride Function MoveToNextNamespace (namespaceScope As XPathNamespaceScope) As Boolean

Parameters

namespaceScope
XPathNamespaceScope

An XPathNamespaceScope value describing the namespace scope.

Returns

true if the XPathNavigator is successful moving to the next namespace node; otherwise, false. If false, the position of the XPathNavigator is unchanged.

Remarks

The XPathNavigator class returns namespace nodes in reverse document order.

If the XPathNavigator is not currently positioned on a namespace node, this method returns false and the position of the XPathNavigator does not change.

When the XPathNavigator is positioned on a namespace node, the methods MoveToNext, MoveToPrevious, and MoveToFirst are not applicable. These methods always return false and do not change the position of the XPathNavigator.

After the XPathNavigator is positioned on an namespace node, call MoveToParent to move back to the element node.

For a definition of namespace nodes, see section 5.4 of the W3C XML Path Language (XPath) recommendation.

See also

Applies to