ITrigger::Repetition property

Gets or sets a value that indicates how often the task is run and how long the repetition pattern is repeated after the task is started.

This property is read/write.

Syntax


HRESULT put_Repetition(
  [in]   IRepetitionPattern *pRepeat
);

HRESULT get_Repetition(
  [out]  IRepetitionPattern **ppRepeat
);

Property value

The repetition pattern for how often the task is run and how long the repetition pattern is repeated after the task is started.

Error codes

NameMeaning
S_OK

The property value was successfully set or retrieved.

Remarks

When reading or writing your own XML for a task, the repetition pattern for a trigger is specified in the Repetition element of the Task Scheduler schema.

Examples

For more information and example code for this property, see Daily Trigger Example (C++).

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Taskschd.h

Library

Taskschd.lib

DLL

Taskschd.dll

See also

ITrigger
IRepetitionPattern
Task Scheduler

 

 

Community Additions

ADD
Show:
© 2014 Microsoft