RepetitionPatternDuration Property

Gets or sets how long the pattern is repeated.

Definition

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

Property Value

TimeSpan
The duration that the pattern is repeated. The minimum time allowed is one minute. If TimeSpan.Zero is specified, the pattern is repeated indefinitely.

Remarks

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

See Also