The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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
CreatedThe task has been initialized but has not yet been scheduled.
WaitingForActivationThe task is waiting to be activated and scheduled internally by the .NET Framework infrastructure.
WaitingToRunThe task has been scheduled for execution but has not yet begun executing.
RunningThe task is running but has not yet completed.
WaitingForChildrenToCompleteThe task has finished executing and is implicitly waiting for attached child tasks to complete.
RanToCompletionThe task completed execution successfully.
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 Task Cancellation.
FaultedThe task completed due to an unhandled exception.


Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft