Sets the enumerator to its initial position, which is before the first element in the collection.

C# | Visual Basic | Visual C++ |
public void Reset()
Public Sub Reset
public: virtual void Reset() sealed

Exception | Condition |
---|---|
InvalidOperationException | The collection was modified after the enumerator was created. |

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)