共用方式為


IVsEnumTaskItems.Reset Method

Definition

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.

Applies to