Table of Contents

Class OperationCanceledException

Namespace
System.Threading
Assembly
System.Threading.dll

The exception that is thrown when a CancellationToken is raised.

public class OperationCanceledException : SystemException
Inheritance
OperationCanceledException
Inherited Members
Extension Methods

Constructors

OperationCanceledException()

Initializes a new instance of the OperationCanceledException class.

public OperationCanceledException()

OperationCanceledException(string)

Initializes a new instance of the OperationCanceledException class with a specified error message.

public OperationCanceledException(string message)

Parameters

message string

The message that describes the error.

OperationCanceledException(string, Exception)

Initializes a new instance of the OperationCanceledException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public OperationCanceledException(string message, Exception innerException)

Parameters

message string

The error message that explains the reason for the exception.

innerException Exception

The exception that is the cause of the current exception. If the innerException parameter is not a null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception.