0 out of 1 rated this helpful - Rate this topic

TaskStatus Enumeration

Represents the current stage in the lifecycle of a Task.

Namespace:  System.Threading.Tasks
Assembly:  mscorlib (in mscorlib.dll)
public enum TaskStatus
Member name Description
Created The task has been initialized but has not yet been scheduled.
WaitingForActivation The task is waiting to be activated and scheduled internally by the .NET Framework infrastructure.
WaitingToRun The task has been scheduled for execution but has not yet begun executing.
Running The task is running but has not yet completed.
WaitingForChildrenToComplete The task has finished executing and is implicitly waiting for attached child tasks to complete.
RanToCompletion The task completed execution successfully.
Canceled The task acknowledged cancellation by throwing an OperationCanceledException with its own CancellationToken while the token was in signaled state, or the task's CancellationToken was already signaled before the task started executing. For more information, see Task Cancellation.
Faulted The task completed due to an unhandled exception.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ