Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TaskCanceledException Constructor

 

Initializes a new instance of the TaskCanceledException class.

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

NameDescription
System_CAPS_pubmethodTaskCanceledException()

Initializes a new instance of the TaskCanceledException class with a system-supplied message that describes the error.

System_CAPS_protmethodTaskCanceledException(SerializationInfo^, StreamingContext)

Initializes a new instance of the TaskCanceledException class with serialized data.

System_CAPS_pubmethodTaskCanceledException(String^)

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

System_CAPS_pubmethodTaskCanceledException(String^, Exception^)

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.

System_CAPS_pubmethodTaskCanceledException(Task^)

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

Return to top
Show:
© 2017 Microsoft