Click or drag to resize
Task Scheduler Managed Class Library

IdleSettings Class

Specifies how the Task Scheduler performs tasks when the computer is in an idle condition. For information about idle conditions, see Task Idle Conditions.
Inheritance Hierarchy
SystemObject
  Microsoft.Win32.TaskSchedulerIdleSettings

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.12.0
Syntax
C#
public sealed class IdleSettings : IDisposable, 
	INotifyPropertyChanged
Request Example View Source

The IdleSettings type exposes the following members.

Properties
 NameDescription
Public propertyIdleDuration 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.
Public propertyRestartOnIdle Gets or sets a Boolean value that indicates whether the task is restarted when the computer cycles into an idle condition more than once.
Public propertyStopOnIdleEnd Gets or sets a Boolean value that indicates that the Task Scheduler will terminate the task if the idle condition ends before the task is completed.
Public propertyWaitTimeout Gets or sets a value that indicates the amount of time that the Task Scheduler will wait for an idle condition to occur. If no value is specified for this property, then the Task Scheduler service will wait indefinitely for an idle condition to occur.
Top
Methods
 NameDescription
Public methodDisposeReleases all resources used by this class.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a String that represents this instance.
(Overrides ObjectToString)
Top
Events
 NameDescription
Public eventPropertyChangedOccurs when a property value changes.
Top
See Also