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 nameDescription
CanceledThe 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 [3ecf1ea9-e399-4a6a-a0d6-8475f48dcb28].
CreatedThe task has been initialized but has not yet been scheduled.
FaultedThe task completed due to an unhandled exception.
RanToCompletionThe task completed execution successfully.
RunningThe task is running but has not yet completed.
WaitingForActivationThe task is waiting to be activated and scheduled internally by the .NET Framework infrastructure.
WaitingForChildrenToCompleteThe task has finished executing and is implicitly waiting for attached child tasks to complete.
WaitingToRunThe task has been scheduled for execution but has not yet begun executing.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2015 Microsoft