officefileapi-devexpress-dot-xtrarichedit-dot-decryptionfailedeventargs.md
Returns an exception that led to the event.
Namespace : DevExpress.XtraRichEdit
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
public RichEditDecryptionException Exception { get; }
Public ReadOnly Property Exception As RichEditDecryptionException
| Type | Description |
|---|---|
| RichEditDecryptionException |
One of the RichEditDecryptionException values indicating the decryption exception.
|
The code sample below shows how to handle the DecryptionFailed event to show an exception message.
private static void Server_DecryptionFailed(object sender, DecryptionFailedEventArgs e)
{
Console.WriteLine(e.Exception.Message.ToString()+" Press any key to close...");
Console.ReadKey(true);
}
Private Shared Sub Server_DecryptionFailed(ByVal sender As Object, ByVal e As DecryptionFailedEventArgs)
Console.WriteLine(e.Exception.Message.ToString() & " Press any key to close...")
Console.ReadKey(True)
End Sub
See Also
DecryptionFailedEventArgs Class