Export (0) Print
Expand All

TaskCanceledException.Task Property

Gets the task associated with this exception.

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

public Task Task { get; }

Property Value

Type: System.Threading.Tasks.Task
A reference to the Task that is associated with this exception.

It is permissible for no Task to be associated with a TaskCanceledException, in which case this property will return null.

This property is thread-safe and may be used from multiple threads concurrently.

Silverlight

Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2015 Microsoft