KeyNeeded Event
This event is fired to request a vault encryption/decryption key from the application.
Syntax
public event OnKeyNeededHandler OnKeyNeeded; public delegate void OnKeyNeededHandler(object sender, PasswordvaultKeyNeededEventArgs e); public class PasswordvaultKeyNeededEventArgs : EventArgs { public bool Cancel { get; set; } }
Public Event OnKeyNeeded As OnKeyNeededHandler Public Delegate Sub OnKeyNeededHandler(sender As Object, e As PasswordvaultKeyNeededEventArgs) Public Class PasswordvaultKeyNeededEventArgs Inherits EventArgs Public Property Cancel As Boolean End Class
Remarks
Component fires this event to request a vault encryption key from the application. Note that this is not the same as entry encryption key, which is requested by EntryKeyNeeded. The key requested by this event is used to encrypt or decrypt the whole vault.
The handler of this event should assign the password or key to be used to Password or Key property respectively. Set Cancel to true to abort the operation.