CachedDataItemEnumerator.Reset Method

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

Namespace:  Microsoft.VisualStudio.Tools.Applications
Assembly:  Microsoft.VisualStudio.Tools.Applications.ServerDocument (in Microsoft.VisualStudio.Tools.Applications.ServerDocument.dll)

Syntax

'Declaration
Public Sub Reset
public void Reset()

Implements

IEnumerator.Reset()

Exceptions

Exception Condition
InvalidOperationException

The collection was modified after the enumerator was created.

Remarks

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 Security

See Also

Reference

CachedDataItemEnumerator Class

Microsoft.VisualStudio.Tools.Applications Namespace