Click or drag to resize
Task Scheduler Managed Class Library

RepetitionPattern Constructor

Initializes a new instance of the RepetitionPattern class.

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.12.0
Syntax
C#
public RepetitionPattern(
	TimeSpan interval,
	TimeSpan duration,
	bool stopAtDurationEnd = false
)
Request Example View Source

Parameters

interval  TimeSpan
The amount of time between each restart of the task. The maximum time allowed is 31 days, and the minimum time allowed is 1 minute.
duration  TimeSpan
The duration of how long the pattern is repeated. The minimum time allowed is one minute. If TimeSpan.Zero is specified, the pattern is repeated indefinitely.
stopAtDurationEnd  Boolean  (Optional)
If set to true the running instance of the task is stopped at the end of repetition pattern duration.
See Also