Applies to: desktop apps only
Scripting object that represents a trigger that starts a task at a specific date and time.
Members
The TimeTrigger object has these types of members:
Properties
The TimeTrigger object has these properties.
| Property | Access type | Description |
|---|---|---|
| Read/write |
Inherited from Trigger. Gets or sets a Boolean value that indicates whether the trigger is enabled. | |
| Read/write |
Inherited from Trigger. Gets or sets the date and time when the trigger is deactivated. The trigger cannot start the task after it is deactivated. | |
| Read/write |
Inherited from Trigger. Gets or sets the maximum amount of time that the task launched by the trigger is allowed to run. | |
| Read/write |
Inherited from Trigger. Gets or sets the identifier for the trigger. | |
| Read/write |
Gets or sets a delay time that is randomly added to the start time of the trigger. | |
| Read/write |
Inherited from Trigger. Gets or sets how often the task is run and how long the repetition pattern is repeated after the task is started. | |
| Read/write |
Inherited from Trigger. Gets or sets the date and time when the trigger is activated. This element is required. | |
| Read-only |
Inherited from Trigger. Gets the type of the trigger. |
Remarks
The StartBoundary element is a required element for time and calendar triggers (TimeTrigger and CalendarTrigger).
When reading or writing XML for a task, an idle trigger is specified using the TimeTrigger element of the Task Scheduler schema.
Examples
For more information and example code for this scripting object, see Time Trigger Example (Scripting).
Requirements
|
Minimum supported client | Windows Vista |
|---|---|
|
Minimum supported server | Windows Server 2008 |
|
Type library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 5/5/2012
