DeleteRange()

XPathNavigator::DeleteRange(SharedPtr<XPathNavigator>) method

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

virtual void System::Xml::XPath::XPathNavigator::DeleteRange(SharedPtr<XPathNavigator> lastSiblingToDelete)

Arguments

ParameterTypeDescription
lastSiblingToDeleteSharedPtr<XPathNavigator>An XPathNavigator positioned on the last sibling node in the range to delete.

Exceptions

ExceptionDescription
ArgumentNullExceptionThe XPathNavigator specified is nullptr.
NotSupportedExceptionThe XPathNavigator does not support editing.
InvalidOperationExceptionThe last node to delete specified is not a valid sibling node of the current node.

See Also