IVsEnumTaskItems.Reset Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the enumeration sequence to the beginning.
public:
int Reset();
public:
int Reset();
int Reset();
public int Reset ();
abstract member Reset : unit -> int
Public Function Reset () As Integer
Returns
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.