DecryptionPasswordNeeded Event
Requests a decryption password, when needed.
Syntax
public event OnDecryptionPasswordNeededHandler OnDecryptionPasswordNeeded; public delegate void OnDecryptionPasswordNeededHandler(object sender, ArchivereaderDecryptionPasswordNeededEventArgs e); public class ArchivereaderDecryptionPasswordNeededEventArgs : EventArgs { public string PasswordTarget { get; } public bool Cancel { get; set; } }
Public Event OnDecryptionPasswordNeeded As OnDecryptionPasswordNeededHandler Public Delegate Sub OnDecryptionPasswordNeededHandler(sender As Object, e As ArchivereaderDecryptionPasswordNeededEventArgs) Public Class ArchivereaderDecryptionPasswordNeededEventArgs Inherits EventArgs Public ReadOnly Property PasswordTarget As String Public Property Cancel As Boolean End Class
Remarks
Component fires this event when it needs a password to decrypt the archive. Subscribe to this event if you expect to process encrypted archives.
Inside the event handler, please assign the correct password to DecryptionPassword property, or set Cancel parameter to true to terminate the processing.