ITimeTrigger interface (taskschd.h)
Represents a trigger that starts a task at a specific date and time.
Inheritance
The ITimeTrigger interface inherits from the ITrigger interface.
Methods
The ITimeTrigger interface has these methods.
ITimeTrigger::get_RandomDelay Gets or sets a delay time that is randomly added to the start time of the trigger. (ITimeTrigger.get_RandomDelay) |
ITimeTrigger::put_RandomDelay Gets or sets a delay time that is randomly added to the start time of the trigger. (ITimeTrigger.put_RandomDelay) |
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 interface, see Time Trigger Example (C++).
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | taskschd.h |