<PackageReference Include="Microsoft.Bcl" Version="1.1.7" />

System.Threading.Tasks.TaskCanceledException

Represents an exception used to communicate task cancellation.
public Task Task { get; }

Gets the task associated with this exception.

Initializes a new instance of the TaskCanceledException class.

public TaskCanceledException(string message)

Initializes a new instance of the TaskCanceledException class with a specified error message.

public TaskCanceledException(string message, Exception innerException)

Initializes a new instance of the TaskCanceledException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Initializes a new instance of the TaskCanceledException class with a reference to the Task that has been canceled.