Export (0) Print
Expand All

IRemoteArgumentEnumeratorContract.Reset Method

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

Namespace:  System.AddIn.Contract.Collections
Assembly:  System.AddIn.Contract (in System.AddIn.Contract.dll)

ExceptionCondition
InvalidOperationException

The collection was modified after the enumerator was created.

After you call Reset, the value of GetCurrent is undefined. Call the MoveNext method to move the enumerator to the first element of the collection.

An enumerator remains valid as long as the collection remains unchanged. If changes are made to the collection, such as adding, modifying, or deleting elements, the enumerator is irrecoverably invalidated and the next call to MoveNext or Reset throws an InvalidOperationException.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft