System.OperationCanceledException Class

The exception that is thrown in a thread upon cancellation of an operation that the thread was executing.

See Also: OperationCanceledException Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public class OperationCanceledException : SystemException

Remarks

If the task that was canceled had an associated cancellation token, it is returned by the OperationCanceledException.CancellationToken property, and the System.Threading.CancellationToken.IsCancellationRequested property of the token is set to true.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0