Moves the System.Xml.XPath.XPathNavigator to the following element of the System.Xml.XPath.XPathNodeType specified, to the boundary specified, in document order.
- 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.
![]()
true if the System.Xml.XPath.XPathNavigator moved successfully; otherwise false.
The XPathNavigator.MoveToFollowing(XPathNodeType, XPathNavigator) method does not move to attribute or namespace nodes. If the System.Xml.XPath.XPathNodeType parameter value is XPathNodeType.Attribute or XPathNodeType.Namespace, the XPathNavigator.MoveToFollowing(XPathNodeType, XPathNavigator) method returns false and the position of the System.Xml.XPath.XPathNavigator is unchanged.
If the System.Xml.XPath.XPathNavigator boundary passed as a parameter is not positioned after the position of the current System.Xml.XPath.XPathNavigator it is ignored.
If System.Xml.XPath.XPathNavigator boundary passed as a parameter is null the next following node with the specified System.Xml.XPath.XPathNodeType is located in document order.
The erload:System.Xml.XPath.XPathNavigator.MoveToFollowing methods cannot be used to move to attribute or namespace nodes. If the System.Xml.XPath.XPathNavigator boundary passed as a parameter is positioned over an attribute or namespace node, it is equivalent to the System.Xml.XPath.XPathNavigator boundary parameter having been positioned on the first child node of its parent element. This ensures that the parent element of the attribute or namespace node that the System.Xml.XPath.XPathNavigator boundary parameter is positioned on can be matched by this method.
If the XPathNavigator.MoveToFollowing(string, string) method returns false, the position of the System.Xml.XPath.XPathNavigator is unchanged.