TaskSettingsDeleteExpiredTaskAfter Property
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.
Namespace: Microsoft.Win32.TaskSchedulerAssembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
[DefaultValueAttribute(typeof(TimeSpan), "12:00:00")]
public TimeSpan DeleteExpiredTaskAfter { get; set; }
Property Value
TimeSpan
Gets and sets the amount of time that the Task Scheduler will wait before deleting the task after it expires. A TimeSpan value
of 1 second indicates the task is set to delete when done. A value of TimeSpan.Zero indicates that the task should not be deleted.
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 of all trigger types.