[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Sets the enumerator to its initial position, which is before the first element in the collection.
Assembly: mscorlib (in mscorlib.dll)
The collection was modified after the enumerator was created.
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 the MoveNext or method throws an InvalidOperationException.
The method is provided for COM interoperability. It does not necessarily need to be implemented; instead, the implementer can simply throw a NotSupportedException.Notes to Implementers
All calls to must result in the same state for the enumerator. The preferred implementation is to move the enumerator to the beginning of the collection, before the first element. This invalidates the enumerator if the collection has been modified since the enumerator was created, which is consistent with MoveNext and Current.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.