ControlSend Event
Fires when data is about to be set via the control channel.
Syntax
public event OnControlSendHandler OnControlSend; public delegate void OnControlSendHandler(object sender, FtpclientControlSendEventArgs e); public class FtpclientControlSendEventArgs : EventArgs { public string TextLine { get; } }
Public Event OnControlSend As OnControlSendHandler Public Delegate Sub OnControlSendHandler(sender As Object, e As FtpclientControlSendEventArgs) Public Class FtpclientControlSendEventArgs Inherits EventArgs Public ReadOnly Property TextLine As String End Class
Remarks
TextLine contains the data to be sent, which would typically contain a command issued by the client (e.g. CWD dir).