IVsEnumTaskItems.Reset Method
Sets the enumeration sequence to the beginning.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function Reset As Integer
int Reset()
int Reset()
abstract Reset : unit -> int
function Reset() : int
Return Value
Type: System.Int32
Remarks
The IVsEnumTaskItems.Reset and Skip methods of this interface can be used to get to a particular position of the enumeration before using Next to retrieve task items from the enumeration.
For example, when a task provider calls RefreshTasks, the task list can find the new task items offered by the provider by calling EnumTaskItems to get the interface to IVsEnumTaskItems. The task list can then call IVsEnumTaskItems::Reset to go to the beginning of the enumeration, call Skip to skip over the tasks it already knows about, and finally call Next to get a list of the new tasks.
.NET Framework Security
- 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.