Export (0) Print
Expand All

Task Properties

The Task type exposes the following members.

  Name Description
Public property Supported by Portable Class Library AsyncState Gets the state object supplied when the Task was created, or null if none was supplied.
Public property Static member CompletedTask Gets a task that has already completed successfully.
Public property Supported by Portable Class Library CreationOptions Gets the TaskCreationOptions used to create this task.
Public property Static member Supported by Portable Class Library CurrentId Returns the unique ID of the currently executing Task.
Public property Supported by Portable Class Library 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.
Public property Static member Supported by Portable Class Library Factory Provides access to factory methods for creating and configuring Task and Task<TResult> instances.
Public property Supported by Portable Class Library Id Gets a unique ID for this Task instance.
Public property Supported by Portable Class Library IsCanceled Gets whether this Task instance has completed execution due to being canceled.
Public property Supported by Portable Class Library IsCompleted Gets whether this Task has completed.
Public property Supported by Portable Class Library IsFaulted Gets whether the Task completed due to an unhandled exception.
Public property Supported by Portable Class Library Status Gets the TaskStatus of this task.
Top

  Name Description
Explicit interface implemetation Private property Supported by Portable Class Library IAsyncResult.AsyncWaitHandle Gets a WaitHandle that can be used to wait for the task to complete.
Explicit interface implemetation Private property Supported by Portable Class Library IAsyncResult.CompletedSynchronously Gets an indication of whether the operation completed synchronously.
Top
Show:
© 2015 Microsoft