IdleSettingsIdleDuration Property

Gets or sets a value that indicates the amount of time that the computer must be in an idle state before the task is run.

Definition

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

Property Value

TimeSpan
A value that indicates the amount of time that the computer must be in an idle state before the task is run. The minimum value is one minute. If this value is TimeSpan.Zero, then the delay will be set to the default of 10 minutes.

See Also