Task Properties
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() | AsyncState | Gets the state object supplied when the Task was created, or null if none was supplied. |
![]() ![]() | CompletedTask | Gets a task that has already completed successfully. |
![]() | CreationOptions | Gets the TaskCreationOptions used to create this task. |
![]() ![]() | CurrentId | Returns the ID of the currently executing Task. |
![]() | Exception | Gets the AggregateException that caused the Task to end prematurely. If the Task completed successfully or has not yet thrown any exceptions, this will return null. |
![]() ![]() | Factory | Provides access to factory methods for creating and configuring Task and Task<'TResult> instances. |
![]() | Id | Gets an ID for this Task instance. |
![]() | IsCanceled | Gets whether this Task instance has completed execution due to being canceled. |
![]() | IsCompleted | Gets whether this Task has completed. |
![]() | IsFaulted | Gets whether the Task completed due to an unhandled exception. |
![]() | Status | Gets the TaskStatus of this task. |
| Name | Description | |
|---|---|---|
![]() ![]() | IAsyncResult.AsyncWaitHandle | Gets a WaitHandle that can be used to wait for the task to complete. |
![]() ![]() | IAsyncResult.CompletedSynchronously | Gets an indication of whether the operation completed synchronously. |



