DecryptionPasswordNeeded Event
Request to provide decryption password during decryption.
Syntax
public event OnDecryptionPasswordNeededHandler OnDecryptionPasswordNeeded; public delegate void OnDecryptionPasswordNeededHandler(object sender, OfficedecryptorDecryptionPasswordNeededEventArgs e); public class OfficedecryptorDecryptionPasswordNeededEventArgs : EventArgs { public bool CancelDecryption { get; set; } }
Public Event OnDecryptionPasswordNeeded As OnDecryptionPasswordNeededHandler Public Delegate Sub OnDecryptionPasswordNeededHandler(sender As Object, e As OfficedecryptorDecryptionPasswordNeededEventArgs) Public Class OfficedecryptorDecryptionPasswordNeededEventArgs Inherits EventArgs Public Property CancelDecryption As Boolean End Class
Remarks
This event is fired when the component needs decryption password from the user.
if CancelDecryption property is set to true value (default value) then decryption would fail if provided password is invalid. Otherwise this event would be fired again.