Back to Devexpress

IRichEditDocumentServer.EncryptedFilePasswordCheckFailed Event

officefileapi-devexpress-dot-xtrarichedit-dot-iricheditdocumentserver-7b264ec1.md

latest3.1 KB
Original Source

IRichEditDocumentServer.EncryptedFilePasswordCheckFailed Event

Occurs when the encryption password is empty or invalid.

Namespace : DevExpress.XtraRichEdit

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
event EncryptedFilePasswordCheckFailedEventHandler EncryptedFilePasswordCheckFailed
vb
Event EncryptedFilePasswordCheckFailed As EncryptedFilePasswordCheckFailedEventHandler

Event Data

The EncryptedFilePasswordCheckFailed event's data class is EncryptedFilePasswordCheckFailedEventArgs. The following properties provide information specific to this event:

PropertyDescription
DocumentNameGets the encrypted document’s name.
ErrorObtains the error type caused the event to raise.
HandledGets or sets a value that indicates whether the event handler has completely handled the event or whether the system should continue its own processing. Inherited from HandledEventArgs.
TryAgainGets or sets whether to prompt with a password again.

Remarks

Hanlde the EncryptedFilePasswordCheckFailed event to determine the password error (PasswordRequired or WrongPassword, and specify whether to enable a new password request (xref:DevExpress.XtraRichEdit.EncryptedFilePasswordCheckFailedEventArgs.TryAgain).

If the TryAgain property is set to true, the IRichEditDocumentServer.EncryptedFilePasswordRequested event occurs. The RichEditDocumentServer.InvalidFormatException event fires when the TryAgain property is not specifies or set to false.

See Also

IRichEditDocumentServer Interface

IRichEditDocumentServer Members

DevExpress.XtraRichEdit Namespace