This documentation is archived and is not being maintained.

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.

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.

Show: