.NET Framework Class Library |
TaskCanceledException Constructor (String) |
TaskCanceledException Class See Also Send Feedback |
Initializes a new instance of the TaskCanceledException
class with a specified error message.
Namespace:
System.Threading.Tasks
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Sub New ( _ message As String _ ) |
C# |
---|
public TaskCanceledException( string message ) |
Parameters
- message
- Type: System..::.String
The error message that explains the reason for the exception.