Click to Rate and Give Feedback
Task Scheduler 2.0 Interfaces

The interfaces that are described in the following topics provide programmatic access to the functionality that is available within the Task Scheduler that is used in the Windows Vista operating system.

These topics contain a description of the interface, a list of the properties and methods defined by the interface, and remarks about any special circumstances that should be noted when using the interface.

The following interfaces are introduced in Task Scheduler 2.0.

InterfaceDescription
IActionProvides the common properties that are inherited by all action objects.
IActionCollectionContains the actions that are performed by the task. Its methods can be used to add to, remove from, and retrieve the actions of a task.
IBootTriggerRepresents a trigger that starts a task when the system is booted.
IComHandlerActionRepresents an action that fires a handler.
IDailyTriggerRepresents a trigger that starts a task based on a daily schedule.
IEmailActionRepresents an action that sends an e-mail.
IEventTriggerRepresents a trigger that starts a task when a system event occurs.
IExecActionRepresents an action that executes a command-line operation.
IIdleSettingsSpecifies how the Task Scheduler performs tasks when the computer is in an idle condition.
IIdleTriggerRepresents a trigger that starts a task when the computer goes into an idle state.
ILogonTriggerRepresents a trigger that starts a task when a user logs on.
IMonthlyDOWTriggerRepresents a trigger that starts a task on a monthly day-of-week schedule.
IMonthlyTriggerRepresents a trigger that starts a task based on a monthly schedule.
INetworkSettingsProvides the settings that the Task Scheduler service uses to obtain a network profile.
IPrincipalProvides the security credentials for a principal.
IPrincipal2Provides additional security credentials for a principal.
IRegisteredTaskProvides the methods that are used to run the task immediately, get any running instances of the task, get or set the credentials that are used to register the task, and the properties that describe the task.
IRegisteredTaskCollectionContains all the tasks that are registered.
IRegistrationInfoProvides the administrative information that can be used to describe the task. This information includes details such as a description of the task, the author of the task, the date the task is registered, and the security descriptor of the task.
IRegistrationTriggerRepresents a trigger that starts a task when the task is registered.
IRepetitionPatternDefines how often the task is run and how long the repetition pattern is repeated after the task is started.
IRunningTaskProvides the methods to get information from and control a running task.
IRunningTaskCollectionProvides a collection that is used to control running tasks.
ISessionStateChangeTriggerTriggers tasks for console connect or disconnect, remote connect or disconnect, or workstation lock or unlock notifications.
IShowMessageActionRepresents an action that shows a message box when a task is activated.
ITaskDefinitionDefines all the components of a task, such as the task settings, triggers, actions, and registration information.
ITaskFolderProvides the methods that are used to register (create) tasks in the folder, remove tasks from the folder, and create or remove subfolders from the folder.
ITaskFolderCollectionProvides information and control for a collection of folders that contain tasks.
ITaskHandlerDefines the methods that are called by the Task Scheduler service to manage a COM handler.
ITaskHandlerStatusProvides the methods that are used by COM handlers to notify the Task Scheduler about the status of the handler.
ITaskNamedValuePairCreates a name-value pair in which the name is associated with the value.
ITaskNamedValueCollectionContains a collection of ITaskNamedValuePair interface name-value pairs.
ITaskServiceProvides access to the Task Scheduler service for managing registered tasks.
ITaskSettings Provides the settings that the Task Scheduler services uses to perform the task.
ITaskSettings2Provides additional settings that the Task Scheduler services uses to perform the task.
ITaskVariablesDefines task variables that can be passed as parameters to task handlers and external executables that are launched by tasks. Task handlers that need to input and output data to job variables should do a query interface on the services pointer for ITaskVariables.
ITimeTriggerRepresents a trigger that starts a task when the trigger is activated.
ITriggerProvides the common properties that are inherited by all trigger interfaces.
ITriggerCollectionProvides the methods that are used to add to, remove from, and get the triggers of a task.
IWeeklyTriggerRepresents a trigger that starts a task based on a weekly schedule.

 

Send comments about this topic to Microsoft

Build date: 11/12/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker