officefileapi-devexpress-dot-spreadsheet-dot-encryptedfilepasswordcheckfailedeventargs-668e3ea5.md
Gets or sets whether to request a password again.
Namespace : DevExpress.Spreadsheet
Assembly : DevExpress.Spreadsheet.v25.2.Core.dll
NuGet Package : DevExpress.Spreadsheet.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 EncryptedFilePasswordRequested event raises. The InvalidFormatException fires if the TryAgain property is not specified or set to false.
The following code snippet (auto-collected from DevExpress Examples) contains a reference 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.
spreadsheet-document-api-encryption/CS/EncryptionExample/Program.cs#L84
Console.WriteLine("You did not enter the password!");
e.TryAgain = true;
e.Handled = true;
spreadsheet-document-api-encryption/VB/EncryptionExample/Program.vb#L65
Console.WriteLine("You did not enter the password!")
e.TryAgain = True
e.Handled = True
See Also
EncryptedFilePasswordCheckFailedEventArgs Class