StringEnumerator.Reset Method ()

 

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

Namespace:   System.Collections.Specialized
Assembly:  System (in System.dll)

member Reset : unit -> unit

Exception Condition
InvalidOperationException

The collection was modified after the enumerator was created.

Reset moves the enumerator to the beginning of the collection, before the first element. After Reset, MoveNext must be called to advance the enumerator to the first element of the collection before reading the value of Current.

The following code example demonstrates several of the properties and methods of StringEnumerator.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Return to top
Show: