Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Specifies the triggers that start the task.
<xs:element name="Triggers"
type="triggersType"
/>
The Triggers element is defined by the triggersType complex type.
Parent element
Element | Derived from | Description |
---|---|---|
Task | taskType | Defines the task that is performed by the Task Scheduler service. |
Child elements
Element | Type | Description |
---|---|---|
BootTrigger | bootTriggerType | Specifies a trigger that starts a task when the system is booted. |
CalendarTrigger | calendarTriggerType | Specifies a daily, weekly, monthly, or a monthly day-of-the-week (DOW) trigger. |
EventTrigger | eventTriggerType | Specifies a trigger that starts a task when a system event occurs. |
IdleTrigger | idleTriggerType | Specifies a trigger that starts a task when the computer goes into an idle state. |
LogonTrigger | logonTriggerType | Specifies a trigger that starts a task when a user logs on. |
RegistrationTrigger | registrationTriggerType | Specifies a trigger that starts a task when the task is registered. |
TimeTrigger | timeTriggerType | Specifies a trigger that starts a task when the trigger is activated. |
Remarks
The child elements listed above can be added in any order.
For C++ development, the triggers of a task are specified using the Triggers property of ITaskDefinition.
For scripting development, the triggers of a task are specified using the TaskDefinition.Triggers property.
Examples
For a complete example of the XML for a task that specifies a trigger, see Time Trigger Example (XML).
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |