Gets the TaskStatus of this task.
Assembly: mscorlib (in mscorlib.dll)
The following example creates 20 tasks that will loop until a counter is incremented to a value of 2 million. When the first 10 tasks reach 2 million, the cancellation token is cancelled, and any tasks whose counters have not reached 2 million are cancelled. The example then examines theproperty of each task to indicate whether it completed successfully or was cancelled. For those that completed, it displays the value returned by the task.
Available since 8
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Available since 5.0
Windows Phone Silverlight
Available since 8.0
Available since 8.1