System.Xml.XPath.XPathNavigator.MoveToFollowing Method

Moves the System.Xml.XPath.XPathNavigator to the following element of the System.Xml.XPath.XPathNodeType specified, to the boundary specified, in document order.

Syntax

public virtual bool MoveToFollowing (XPathNodeType type, XPathNavigator end)

Parameters

type
The System.Xml.XPath.XPathNodeType of the element. The System.Xml.XPath.XPathNodeType cannot be XPathNodeType.Attribute or XPathNodeType.Namespace.
end
The System.Xml.XPath.XPathNavigator object positioned on the element boundary which the current System.Xml.XPath.XPathNavigator will not move past while searching for the following element.

Returns

true if the System.Xml.XPath.XPathNavigator moved successfully; otherwise false.

Remarks

Requirements

Namespace: System.Xml.XPath
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0