Click or drag to resize
Task Scheduler Managed Class Library

RepetitionPatternDuration Property

Gets or sets how long the pattern is repeated.

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 Duration { get; set; }
Request Example View Source

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