The properties of System.Threading.Tasks.Task are listed below. For a list of all members, see the Task Members list.
See Also: Inherited members from System.Object
[read-only] | AsyncState | object.
Gets the state object supplied when the System.Threading.Tasks.Task was created, or null if none was supplied. |
[read-only] | CreationOptions | System.Threading.Tasks.TaskCreationOptions.
Gets the System.Threading.Tasks.TaskCreationOptions used to create this task. |
[read-only] static | CurrentId | Nullable<int>.
Returns the unique ID of the currently executing System.Threading.Tasks.Task. |
[read-only] | Exception | AggregateException.
Gets the AggregateException that caused the System.Threading.Tasks.Task to end prematurely. If the System.Threading.Tasks.Task completed successfully or has not yet thrown any exceptions, this will return null. |
[read-only] static | Factory | System.Threading.Tasks.TaskFactory.
Provides access to factory methods for creating System.Threading.Tasks.Task and System.Threading.Tasks.Task`1 instances. |
[read-only] | Id | int.
Gets a unique ID for this System.Threading.Tasks.Task instance. |
[read-only] | IsCanceled | bool.
Gets whether this System.Threading.Tasks.Task instance has completed execution due to being canceled. |
[read-only] | IsCompleted | bool.
Gets whether this System.Threading.Tasks.Task has completed. |
[read-only] | IsFaulted | bool.
Gets whether the System.Threading.Tasks.Task completed due to an unhandled exception. |
[read-only] | Status | System.Threading.Tasks.TaskStatus.
Gets the System.Threading.Tasks.TaskStatus of this task. |