EntryKeyNeeded Event
This event is fired to request an entry encryption/decryption key from the application.
Syntax
public event OnEntryKeyNeededHandler OnEntryKeyNeeded; public delegate void OnEntryKeyNeededHandler(object sender, PasswordvaultEntryKeyNeededEventArgs e); public class PasswordvaultEntryKeyNeededEventArgs : EventArgs { public string EntryName { get; } public bool Cancel { get; set; } }
Public Event OnEntryKeyNeeded As OnEntryKeyNeededHandler Public Delegate Sub OnEntryKeyNeededHandler(sender As Object, e As PasswordvaultEntryKeyNeededEventArgs) Public Class PasswordvaultEntryKeyNeededEventArgs Inherits EventArgs Public ReadOnly Property EntryName As String Public Property Cancel As Boolean End Class
Remarks
The component fires this event when a key is needed to encrypt or decrypt an entry. The EntryName parameter provides the name of the entry.
The handler of this event should assign the password or key to be used to EntryPassword or EntryKey property respectively. Set Cancel to true to abort the operation.