Information
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
Assemblies:   mscorlib (in mscorlib.dll)
  System.Threading.Tasks (in System.Threading.Tasks.dll)

public enum TaskStatus

Member nameDescription
Supported by Portable Class LibrarySupported in .NET for Windows Store appsCanceledThe 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.
Supported by Portable Class LibrarySupported in .NET for Windows Store appsCreatedThe task has been initialized but has not yet been scheduled.
Supported by Portable Class LibrarySupported in .NET for Windows Store appsFaultedThe task completed due to an unhandled exception.
Supported by Portable Class LibrarySupported in .NET for Windows Store appsRanToCompletionThe task completed execution successfully.
Supported by Portable Class LibrarySupported in .NET for Windows Store appsRunningThe task is running but has not yet completed.
Supported by Portable Class LibrarySupported in .NET for Windows Store appsWaitingForActivationThe task is waiting to be activated and scheduled internally by the .NET Framework infrastructure.
Supported by Portable Class LibrarySupported in .NET for Windows Store appsWaitingForChildrenToCompleteThe task has finished executing and is implicitly waiting for attached child tasks to complete.
Supported by Portable Class LibrarySupported in .NET for Windows Store appsWaitingToRunThe task has been scheduled for execution but has not yet begun executing.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Portable Class Library

Supported in: Portable Class Library

.NET for Windows Store apps

Supported in: Windows 8

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft