DecryptionPasswordNeeded Event
Fires when the component needs a password to decrypt the archive.
Syntax
public event OnDecryptionPasswordNeededHandler OnDecryptionPasswordNeeded; public delegate void OnDecryptionPasswordNeededHandler(object sender, ArchivewriterDecryptionPasswordNeededEventArgs e); public class ArchivewriterDecryptionPasswordNeededEventArgs : EventArgs { public string PasswordTarget { get; } public bool Cancel { get; set; } }
Public Event OnDecryptionPasswordNeeded As OnDecryptionPasswordNeededHandler Public Delegate Sub OnDecryptionPasswordNeededHandler(sender As Object, e As ArchivewriterDecryptionPasswordNeededEventArgs) Public Class ArchivewriterDecryptionPasswordNeededEventArgs Inherits EventArgs Public ReadOnly Property PasswordTarget As String Public Property Cancel As Boolean End Class
Remarks
Component fires this event to request a decryption password from the application when it comes across an encrypted archive or entry.
Please assign the password to DecryptionPassword property inside the event handler, or set Cancel to true to cancel the operation.