TaskCanceledException Constructor (Task)

Task Parallel System.Threading

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

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

Syntax

Visual Basic (Declaration)
Public Sub New ( _
	task As Task _
)
C#
public TaskCanceledException(
	Task task
)

Parameters

task
Type: System.Threading.Tasks..::.Task
A task that has been canceled.

See Also