Partager via


TaskCanceledException Constructor (Task)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

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

Parameters

Version Information

Silverlight

Supported in: 5

Platforms

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