OperationCanceledException Constructor

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the OperationCanceledException class.

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

NameDescription
System_CAPS_pubmethodOperationCanceledException()

Initializes a new instance of the OperationCanceledException class with a system-supplied error message.

System_CAPS_pubmethodOperationCanceledException(CancellationToken)

Initializes a new instance of the OperationCanceledException class with a cancellation token.

System_CAPS_protmethodOperationCanceledException(SerializationInfo, StreamingContext)

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

System_CAPS_pubmethodOperationCanceledException(String)

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

System_CAPS_pubmethodOperationCanceledException(String, CancellationToken)

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

System_CAPS_pubmethodOperationCanceledException(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.

System_CAPS_pubmethodOperationCanceledException(String, Exception, CancellationToken)

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

Return to top
Show: