System.Xml.XPath.XPathNodeIterator.Clone Method

When overridden in a derived class, returns a clone of this System.Xml.XPath.XPathNodeIterator object.

Syntax

public abstract XPathNodeIterator Clone ()

Returns

A new System.Xml.XPath.XPathNodeIterator object clone of this System.Xml.XPath.XPathNodeIterator object.

Remarks

The cloned System.Xml.XPath.XPathNodeIterator object is positioned at the same node in the node set if calls have been made to the XPathNodeIterator.MoveNext method. The cloned System.Xml.XPath.XPathNodeIterator object is not affected by subsequent changes to this System.Xml.XPath.XPathNodeIterator object.

Requirements

Namespace: System.Xml.XPath
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0