.NET Framework Class Library |
TaskCanceledException Constructor (String, Exception) |
TaskCanceledException Class See Also Send Feedback |
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.
Namespace:
System.Threading.Tasks
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Sub New ( _ message As String, _ innerException As Exception _ ) |
C# |
---|
public TaskCanceledException( string message, Exception innerException ) |
Parameters
- message
- Type: System..::.String
The error message that explains the reason for the exception.
- innerException
- Type: System..::.Exception
The exception that is the cause of the current exception.