ITaskSettings::get_DeleteExpiredTaskAfter method (taskschd.h)
Gets or sets the amount of time that the Task Scheduler will wait before deleting the task after it expires. If no value is specified for this property, then the Task Scheduler service will not delete the task.
This property is read/write.
HRESULT get_DeleteExpiredTaskAfter( BSTR *pExpirationDelay );
A task expires after the end boundary has been exceeded for all triggers associated with the task. The end boundary for a trigger is specified by the EndBoundary property inherited by all trigger interfaces.
When reading or writing XML for a task, this setting is specified in the DeleteExpiredTaskAfter (settingsType) element of the Task Scheduler schema.
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2008 [desktop apps only]|