Partilhar via


Troubleshooting Exceptions: System.OperationCanceledException 

An OperationCanceledException is thrown when an operation is made with the UICancelOption Enumeration 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 Enumeration 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: Find Out More About an Exception with the Exception Assistant

Reference

OperationCanceledException