Back to Devexpress

EncryptedFilePasswordCheckFailedEventArgs.TryAgain Property

officefileapi-devexpress-dot-xtrarichedit-dot-encryptedfilepasswordcheckfailedeventargs-3c4399e9.md

latest4.1 KB
Original Source

EncryptedFilePasswordCheckFailedEventArgs.TryAgain Property

Gets or sets whether to prompt with a password again.

Namespace : DevExpress.XtraRichEdit

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
public bool TryAgain { get; set; }
vb
Public Property TryAgain As Boolean

Property Value

TypeDescription
Boolean

true to repeat the password request; otherwise, false.

|

Remarks

If the TryAgain property set to true , the RichEditDocumentServer.EncryptedFilePasswordRequested event raises. The RichEditDocumentServer.InvalidFormatException fires if the TryAgain property is not specified or set to false.

The following code snippets (auto-collected from DevExpress Examples) contain references to the TryAgain property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-richedit-document-encryption/CS/RichEditControl_Encryption/Form1.cs#L54

csharp
{
    e.TryAgain = true;
    e.Handled = true;

wpf-richedit-document-encryption/CS/DXRichEdit_Encryption/MainWindow.xaml.cs#L91

csharp
{
    e.TryAgain = true;
    e.Handled = true;

word-document-api-open-and-save-encrypted-files/CS/Program.cs#L75

csharp
Console.WriteLine("You did not enter the password!");
e.TryAgain = true;
e.Handled = true;

winforms-richedit-document-encryption/VB/RichEditControl_Encryption/Form1.vb#L44

vb
If tryCount > 0 Then
    e.TryAgain = True
    e.Handled = True

wpf-richedit-document-encryption/VB/DXRichEdit_Encryption/MainWindow.xaml.vb#L84

vb
If tryCount > 0 Then
    e.TryAgain = True
    e.Handled = True

word-document-api-open-and-save-encrypted-files/VB/Program.vb#L57

vb
Console.WriteLine("You did not enter the password!")
e.TryAgain = True
e.Handled = True

See Also

EncryptedFilePasswordCheckFailedEventArgs Class

EncryptedFilePasswordCheckFailedEventArgs Members

DevExpress.XtraRichEdit Namespace