Returns an IEnumerator object to iterate through the selected node set.
Assembly: System.Xml (in System.Xml.dll)
The enumerator is positioned on the current position of the XPathNodeIterator object.
Another way is to use a foreach loop to call the method and use the returned IEnumerator interface to enumerate the nodes, as in the following example:
You should either use the MoveNext method and Current or use the method. Combining these two approaches can cause unexpected results. For example, if the MoveNext method is called first, and then the method is called in the foreach loop, the foreach loop will not start enumerating the results from the beginning of the collection, but from the position after the Current method.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.