officefileapi-devexpress-dot-xtrarichedit-dot-encryptedfilepasswordcheckfailedeventargs-3c4399e9.md
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
public bool TryAgain { get; set; }
Public Property TryAgain As Boolean
| Type | Description |
|---|---|
| Boolean |
true to repeat the password request; otherwise, false.
|
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
{
e.TryAgain = true;
e.Handled = true;
wpf-richedit-document-encryption/CS/DXRichEdit_Encryption/MainWindow.xaml.cs#L91
{
e.TryAgain = true;
e.Handled = true;
word-document-api-open-and-save-encrypted-files/CS/Program.cs#L75
Console.WriteLine("You did not enter the password!");
e.TryAgain = true;
e.Handled = true;
winforms-richedit-document-encryption/VB/RichEditControl_Encryption/Form1.vb#L44
If tryCount > 0 Then
e.TryAgain = True
e.Handled = True
wpf-richedit-document-encryption/VB/DXRichEdit_Encryption/MainWindow.xaml.vb#L84
If tryCount > 0 Then
e.TryAgain = True
e.Handled = True
word-document-api-open-and-save-encrypted-files/VB/Program.vb#L57
Console.WriteLine("You did not enter the password!")
e.TryAgain = True
e.Handled = True
See Also
EncryptedFilePasswordCheckFailedEventArgs Class