Back to Devexpress

DecryptionFailedEventArgs.Exception Property

officefileapi-devexpress-dot-xtrarichedit-dot-decryptionfailedeventargs.md

latest2.0 KB
Original Source

DecryptionFailedEventArgs.Exception Property

Returns an exception that led to the event.

Namespace : DevExpress.XtraRichEdit

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
public RichEditDecryptionException Exception { get; }
vb
Public ReadOnly Property Exception As RichEditDecryptionException

Property Value

TypeDescription
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.

View Example

csharp
private static void Server_DecryptionFailed(object sender, DecryptionFailedEventArgs e)
{
    Console.WriteLine(e.Exception.Message.ToString()+" Press any key to close...");
    Console.ReadKey(true);
}
vb
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

DecryptionFailedEventArgs Members

DevExpress.XtraRichEdit Namespace