Occurs if the RichEditDocumentServer failed to open an encrypted file.
The DecryptionFailed event handler receives an argument of the DecryptionFailedEventArgs type. The following properties provide information specific to this event.
|Exception||Returns an exception that led to the event.|
The DecryptionFailed event is raised when the RichEditDocumentServer cannot decrypt a loaded file. Check the Exception property to determine the exception that led to this event.
The event also occurs if the EncryptedFilePasswordCheckFailedEventArgs.TryAgain property is not specified or set to false.
If the event is not handled, the RichEditDocumentServer does not load an empty file.
The code sample below shows how to handle the DecryptionFailed event to show an exception message.
A complete code sample project is available at https://github.com/DevExpress-Examples/how-to-open-and-save-encrypted-files.