ITaskTrigger interface

[[This API may be altered or unavailable in subsequent versions of the operating system or product. Please use the Task Scheduler 2.0 Interfaces instead.] ]

Provides the methods for accessing and setting triggers for a task. Triggers specify task start times, repetition criteria, and other parameters that control when a task is run.

ITaskTrigger is the primary interface of the task_trigger object. To create a trigger object, call CreateTrigger or GetTrigger.

Members

The ITaskTrigger interface inherits from the IUnknown interface. ITaskTrigger also has these types of members:

Methods

The ITaskTrigger interface has these methods.

MethodDescription
GetTrigger

Retrieves the current task trigger.

GetTriggerString

Retrieves the current task trigger in the form of a string.

SetTrigger

Sets the task trigger values.

 

Examples

For more information and example code for this interface, see C/C++ Code Example: Creating a Task Trigger.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Redistributable

Internet Explorer 4.0 or later on Windows NT 4.0 and Windows 95

Header

Mstask.h

Library

Mstask.lib

DLL

Mstask.dll

See also

IScheduledWorkItem::CreateTrigger
IScheduledWorkItem::GetTrigger

 

 

Community Additions

ADD
Show:
© 2014 Microsoft