RepetitionPatternInterval Property

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

Definition

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
[DefaultValueAttribute(typeof(TimeSpan), "00:00:00")]
public TimeSpan Interval { get; set; }

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.

Remarks

If you specify a repetition duration for a task, you must also specify the repetition interval.

Exceptions

ArgumentOutOfRangeException The maximum time allowed is 31 days, and the minimum time allowed is 1 minute.

See Also