Scheduled Work Items

The Task Scheduler uses two terms to describe what it can schedule: work items and tasks. Of these two terms, work item is a more general term that describes any type of item that can be scheduled. A work item can be any item that the Task Scheduler service runs at a time that is specified by the item's trigger(s).

In contrast, a task is a specific type of work item. Currently, the only type of scheduled work item that is supported is a task.

The IScheduledWorkItem interface contains methods that are supported by all types of scheduled work items. For example, account information, run times, and application-defined comments are properties that may apply to all types of work items. These properties can be set and retrieved through the IScheduledWorkItem interface.

The ITask interface contains methods that are supported only by tasks.

The methods of the IScheduledWorkItem interface are currently inherited by the ITask interface and in the future will be inherited by other work item interfaces.

For examples of See
Creating a new task. Creating a Task Using NewWorkItem Example
Running an existing task. Starting a Task Example
Retrieving properties that apply to all types of work items. Retrieving Work Item Property Examples
Setting properties that apply to all types of work items. Setting Work Item Property Examples