Click or drag to resize
Task Scheduler Managed Class Library

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.

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

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