Troubleshooting Exceptions: System.OperationCanceledException

An OperationCanceledException is thrown when an operation is made with the UICancelOption set to ThrowException and the operation is cancelled.

Associated Tips

  • If you would prefer that this exception not be thrown, set OperationCanceledException to DoNothing.
    UICancelOption has a default value of ThrowException. If you do not wish this exception to be thrown when the user cancels the operation, set the enumeration value to DoNothing.

See Also

Tasks

How to: Use the Exception Assistant

Reference

OperationCanceledException