eventTriggerType Complex Type

Defines the child elements and sequencing information for the EventTrigger element.

<xs:complexType name="eventTriggerType">
    <xs:complexContent>
        <xs:extension
            base="triggerBaseType"
        >
            <xs:sequence>
                <xs:element name="Subscription"
                    type="nonEmptyString"
                 />
                <xs:element name="Delay"
                    type="duration"
                    default="PT0M"
                    minOccurs="0"
                 />
                <xs:element name="ValueQueries"
                    type="namedValues"
                    minOccurs="0"
                 />
            </xs:sequence>
        </xs:extension>
    </xs:complexContent>
</xs:complexType>

Child elements

Element Type Description
Delay duration Specifies the amount of time between when the event occurs and when the task is started.
Subscription nonEmptyString Specifies the XPath query that identifies the event that fires the trigger.
ValueQueries namedValues Specifies a sequence of elements that each contain a name and an XPath query value. The queries are applied to an event returned from the event subscription specified in the Subscription element. The name for the XPath query value can be used as a variable in the Body element in the ShowMessage action section of a task.

Remarks

In addition to the child element defined here, the EventTrigger element also uses child elements defined by the triggerBaseType complex type.

Requirements

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

See also

Task Scheduler Schema Complex Types

Task Scheduler