Click or drag to resize
Task Scheduler Managed Class Library

EventTrigger Properties

The EventTrigger type exposes the following members.

Properties
  NameDescription
Public propertyDelay
Gets or sets a value that indicates the amount of time between when the system is booted and when the task is started.
Public propertyEnabled
Gets or sets a Boolean value that indicates whether the trigger is enabled.
(Inherited from Trigger.)
Public propertyEndBoundary
Gets or sets the date and time when the trigger is deactivated. The trigger cannot start the task after it is deactivated.
Note Note
While the maximum value for this property is MaxValue, the Windows Task Scheduler management application that is part of the OS will fail if this value is greater than December 31, 9998.
(Inherited from Trigger.)
Public propertyExecutionTimeLimit
Gets or sets the maximum amount of time that the task launched by this trigger is allowed to run. Not available with Task Scheduler 1.0.
(Inherited from Trigger.)
Public propertyId
Gets or sets the identifier for the trigger. Cannot set with Task Scheduler 1.0.
(Inherited from Trigger.)
Public propertyRepetition
Gets a RepetitionPattern instance that indicates how often the task is run and how long the repetition pattern is repeated after the task is started.
(Inherited from Trigger.)
Public propertyStartBoundary
Gets or sets the date and time when the trigger is activated.
(Inherited from Trigger.)
Public propertySubscription
Gets or sets the XPath query string that identifies the event that fires the trigger.
Public propertyTriggerType
Gets the type of the trigger.
(Inherited from Trigger.)
Public propertyValueQueries
Gets a collection of named XPath queries. Each query in the collection is applied to the last matching event XML returned from the subscription query specified in the Subscription property. The name of the query can be used as a variable in the message of a ShowMessageAction action.
Top
See Also