Düzenle

Aracılığıyla paylaş


Enumerating Tasks

Task Scheduler 1.0 provides an enumeration object for enumerating the tasks in the Scheduled Tasks folder.

Note

For a Windows Server 2003, Windows XP, or Windows 2000 computer to create, monitor, or control tasks on a Windows Vista computer, certain operations must be completed on the Windows Vista computer. For more information, see Tasks.

 

Using the Enumeration Object

The IEnumWorkItems interface of this object provides methods for enumerating the tasks in the folder, resetting the enumeration sequence to the start of the list, skipping tasks, and making a copy of the current enumeration object for later use.

For information about enumerating the tasks in the Scheduled tasks folder, see IEnumWorkItems::Next.

For information about resetting the enumeration to the start of the list, see IEnumWorkItems::Reset.

For information about skipping tasks, see IEnumWorkItems::Skip.

For information about making a copy of the current enumeration object, see IEnumWorkItems::Clone.

For an example of enumerating the tasks in the Scheduled Tasks folder, see Enumerating Tasks Example.

Conceptual

Task Scheduler 1.0 Task Information