PasswordChangeRequest Event
Signals that the server requests a password change.
Syntax
public event OnPasswordChangeRequestHandler OnPasswordChangeRequest; public delegate void OnPasswordChangeRequestHandler(object sender, SftpclientPasswordChangeRequestEventArgs e); public class SftpclientPasswordChangeRequestEventArgs : EventArgs { public string Prompt { get; } public string NewPassword { get; set; } public bool Cancel { get; set; } }
Public Event OnPasswordChangeRequest As OnPasswordChangeRequestHandler Public Delegate Sub OnPasswordChangeRequestHandler(sender As Object, e As SftpclientPasswordChangeRequestEventArgs) Public Class SftpclientPasswordChangeRequestEventArgs Inherits EventArgs Public ReadOnly Property Prompt As String Public Property NewPassword As String Public Property Cancel As Boolean End Class
Remarks
The component fires this event to pass the password change request from the server to the application. This event is fired during the SSH handshake.