System.Threading.Tasks.Task: Property Members

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

Public Properties

[read-only]
AsyncStateobject.

Gets the state object supplied when the System.Threading.Tasks.Task was created, or null if none was supplied.

[read-only]
CreationOptionsSystem.Threading.Tasks.TaskCreationOptions.

Gets the System.Threading.Tasks.TaskCreationOptions used to create this task.

[read-only]
static
CurrentIdNullable<int>.

Returns the unique ID of the currently executing System.Threading.Tasks.Task.

[read-only]
ExceptionAggregateException.

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
FactorySystem.Threading.Tasks.TaskFactory.

Provides access to factory methods for creating System.Threading.Tasks.Task and System.Threading.Tasks.Task`1 instances.

[read-only]
Idint.

Gets a unique ID for this System.Threading.Tasks.Task instance.

[read-only]
IsCanceledbool.

Gets whether this System.Threading.Tasks.Task instance has completed execution due to being canceled.

[read-only]
IsCompletedbool.

Gets whether this System.Threading.Tasks.Task has completed.

[read-only]
IsFaultedbool.

Gets whether the System.Threading.Tasks.Task completed due to an unhandled exception.

[read-only]
StatusSystem.Threading.Tasks.TaskStatus.

Gets the System.Threading.Tasks.TaskStatus of this task.