Click or drag to resize

RecurringTaskSchedulerRemoveTask Method

Removes a task so that it is no longer executed on a recurring basis.

Namespace:  AGI.Foundation.Infrastructure.Threading
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public RecurringTaskStatistics RemoveTask(
	RecurringTask task
)

Parameters

task
Type: AGI.Foundation.Infrastructure.ThreadingRecurringTask
The task to remove.

Return Value

Type: RecurringTaskStatistics
The final performance metrics associated with the removed task.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if task is .
ArgumentExceptionThrown if task was never added to the scheduler.
See Also