Task Properties

 

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

NameDescription
System_CAPS_pubpropertyAsyncState

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

System_CAPS_pubpropertySystem_CAPS_staticCompletedTask

Gets a task that has already completed successfully.

System_CAPS_pubpropertyCreationOptions

Gets the TaskCreationOptions used to create this task.

System_CAPS_pubpropertySystem_CAPS_staticCurrentId

Returns the ID of the currently executing Task.

System_CAPS_pubpropertyException

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.

System_CAPS_pubpropertySystem_CAPS_staticFactory

Provides access to factory methods for creating and configuring Task and Task<TResult> instances.

System_CAPS_pubpropertyId

Gets an ID for this Task instance.

System_CAPS_pubpropertyIsCanceled

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

System_CAPS_pubpropertyIsCompleted

Gets whether this Task has completed.

System_CAPS_pubpropertyIsFaulted

Gets whether the Task completed due to an unhandled exception.

System_CAPS_pubpropertyStatus

Gets the TaskStatus of this task.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privpropertyIAsyncResult.AsyncWaitHandle

Gets a WaitHandle that can be used to wait for the task to complete.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIAsyncResult.CompletedSynchronously

Gets an indication of whether the operation completed synchronously.

Return to top
Show: