IMaintenanceSettings::get_Deadline method (taskschd.h)
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.
This property is read/write.
Syntax
HRESULT get_Deadline(
BSTR *target
);
Parameters
target
Return value
None
Remarks
The value of this property must be greater than the value of the Period property.
When reading or writing XML for a task, this setting is specified in the Deadline element of the Task Scheduler schema.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Target Platform | Windows |
Header | taskschd.h |
Library | Taskschd.lib |
DLL | Taskschd.dll |