Status Property

Task.Status Property


Gets the TaskStatus of this task.

Namespace:   System.Threading.Tasks
Assembly:  mscorlib (in mscorlib.dll)

public TaskStatus Status { get; }

Property Value

Type: System.Threading.Tasks.TaskStatus

The current TaskStatus of this task instance.

Retrieving the value of the Task.Status property does not block the calling thread until the task has completed.

For more information and an example, see Chaining Tasks by Using Continuation Tasks and How to: Cancel a Task and Its Children.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Available since 5.0
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
© 2015 Microsoft