System.Xml.XPath.XPathNavigator.DeleteRange Method

Deletes a range of sibling nodes from the current node to the node specified.

Syntax

public virtual void DeleteRange (XPathNavigator lastSiblingToDelete)

Parameters

lastSiblingToDelete
An System.Xml.XPath.XPathNavigator positioned on the last sibling node in the range to delete.

Remarks

The XPathNavigator.DeleteRange(XPathNavigator) method deletes a range of sibling nodes from the current node the System.Xml.XPath.XPathNavigator is positioned on (inclusive) to the node specified by the System.Xml.XPath.XPathNavigator parameter (inclusive). The System.Xml.XPath.XPathNavigator is then positioned on its parent node.

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