Click or drag to resize
Task Scheduler Managed Class Library

MaintenanceSettings Class

Specifies the task settings the Task scheduler will use to start task during Automatic maintenance.
Inheritance Hierarchy
SystemObject
  Microsoft.Win32.TaskSchedulerMaintenanceSettings

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.12.0
Syntax
C#
[XmlTypeAttribute(IncludeInSchema = false)]
public sealed class MaintenanceSettings : IDisposable, 
	INotifyPropertyChanged
Request Example View Source

The MaintenanceSettings type exposes the following members.

Properties
 NameDescription
Public propertyDeadline Gets or sets the amount of time after which the Task scheduler attempts to run the task during emergency Automatic maintenance, if the task failed to complete during regular Automatic maintenance. The minimum value is one day. The value of the Deadline property should be greater than the value of the Period property. If the deadline is not specified the task will not be started during emergency Automatic maintenance.
Public propertyExclusive Gets or sets a value indicating whether the Task Scheduler must start the task during the Automatic maintenance in exclusive mode. The exclusivity is guaranteed only between other maintenance tasks and doesn't grant any ordering priority of the task. If exclusivity is not specified, the task is started in parallel with other maintenance tasks.
Public propertyPeriod Gets or sets the amount of time the task needs to be started during Automatic maintenance. The minimum value is one minute.
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