Subscription (eventTriggerType) Element

Specifies the XPath query that identifies the event that fires the trigger.

<xs:element name="Subscription"
    type="nonEmptyString"
 />

The Subscription element is defined by the eventTriggerType complex type.

Parent element

Element Derived from Description
EventTrigger eventTriggerType Specifies a trigger that starts a task when a system event occurs.

Remarks

For script development, the event subscription is specified by the EventTrigger.Subscription property.

For C++ development, the event subscription is specified by the IEventTrigger::Subscription property.

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 Elements

Task Scheduler