TaskCanceledException Constructor (Task)
Collapse the table of content
Expand the table of content

TaskCanceledException Constructor (Task)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

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

'Declaration
Public Sub New ( _
	task As Task _
)

Parameters

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

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft