.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
A newer version of this page is available. Switch to the current version.

DecryptionFailedEventArgs.Exception Property

Returns an exception that led to the event.

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.RichEdit.v19.1.Core.dll

Declaration

public RichEditDecryptionException Exception { get; }

Property Value

Type Description
RichEditDecryptionException

One of the RichEditDecryptionException values indicating the decryption exception.

Remarks

The code sample below shows how to handle the DecryptionFailed event to show an exception message.

NOTE

A complete code sample project is available at https://github.com/DevExpress-Examples/how-to-open-and-save-encrypted-files.

private static void Server_DecryptionFailed(object sender, DecryptionFailedEventArgs e)
{
    Console.WriteLine(e.Exception.Message.ToString()+" Press any key to close...");
    Console.ReadKey(true);
}
See Also