.NET Framework Class Library |
TaskCanceledException Constructor (Task) |
TaskCanceledException Class See Also Send Feedback |
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.