Click or drag to resize
Task Scheduler Managed Class Library

MaintenanceSettingsDeadline Property

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.

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

Property Value

TimeSpan
Exceptions
ExceptionCondition
NotSupportedPriorToExceptionProperty set for a task on a Task Scheduler version prior to 2.2.
See Also