Click or drag to resize
Task Scheduler Managed Class Library

RepetitionPatternInterval Property

Gets or sets the amount of time between each restart of the task.

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.12.0
Syntax
C#
[DefaultValueAttribute(typeof(TimeSpan), "00:00:00")]
public TimeSpan Interval { get; set; }
Request Example View Source

Property Value

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.
Exceptions
ExceptionCondition
ArgumentOutOfRangeException The maximum time allowed is 31 days, and the minimum time allowed is 1 minute.
Remarks
If you specify a repetition duration for a task, you must also specify the repetition interval.
See Also