triggerGroup Group

Defines the trigger group.

<xs:group name="triggerGroup">
    <xs:choice>
        <xs:element name="BootTrigger"
            type="bootTriggerType"
            minOccurs="0"
         />
        <xs:element name="RegistrationTrigger"
            type="registrationTriggerType"
            minOccurs="0"
         />
        <xs:element name="IdleTrigger"
            type="idleTriggerType"
            minOccurs="0"
         />
        <xs:element name="TimeTrigger"
            type="timeTriggerType"
            minOccurs="0"
         />
        <xs:element name="EventTrigger"
            type="eventTriggerType"
            minOccurs="0"
         />
        <xs:element name="LogonTrigger"
            type="logonTriggerType"
            minOccurs="0"
         />
        <xs:element name="SessionStateChangeTrigger"
            type="sessionStateChangeTriggerType"
            minOccurs="0"
         />
        <xs:element name="CalendarTrigger"
            type="calendarTriggerType"
            minOccurs="0"
         />
    </xs:choice>
</xs:group>

Child elements

Element Type Description
BootTrigger bootTriggerType A trigger that starts a task when the system is booted.
CalendarTrigger calendarTriggerType A trigger that starts a task based on a daily, weekly, monthly, or monthly day-of-week (DOW) schedule.
EventTrigger eventTriggerType A trigger that starts a task when a system event occurs.
IdleTrigger idleTriggerType A trigger that starts a task when the computer goes into an idle state.
LogonTrigger logonTriggerType A trigger that starts a task when a user logs on.
RegistrationTrigger registrationTriggerType A trigger that starts a task when the task is registered.
SessionStateChangeTrigger sessionStateChangeTriggerType A trigger that starts a task when a Terminal Server session changes state.
TimeTrigger timeTriggerType A trigger that starts a task when the trigger is activated.

Remarks

When reading or writing XML, the elements that are defined by this group are the child elements of the Triggers element.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]

See also

Task Scheduler