System.Xml.XmlNode.GetEnumerator Method

Get an enumerator that iterates through the child nodes in the current node.

Syntax

public IEnumerator GetEnumerator ()

Returns

An IEnumerator object that can be used to iterate through the child nodes in the current node.

Remarks

Provides support for the “for each” style iteration over the nodes in the XmlNode.

This method is a Microsoft extension to the Document Object Model (DOM).

Requirements

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