EntryPointEnumerator.Reset Method (2003 System)
Sets the enumerator to its initial position, which is before the first EntryPoint in the collection.
Namespace: Microsoft.VisualStudio.Tools.Applications.Runtime
Assembly: Microsoft.VisualStudio.Tools.Applications.Runtime (in Microsoft.VisualStudio.Tools.Applications.Runtime.dll)
Syntax
'Declaration
Public Sub Reset
'Usage
Dim instance As EntryPointEnumerator
instance.Reset()
public void Reset()
Implements
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.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.