CommandReceived Event
Signals that a command has been received from the client.
Syntax
public event OnCommandReceivedHandler OnCommandReceived; public delegate void OnCommandReceivedHandler(object sender, FtpserverCommandReceivedEventArgs e); public class FtpserverCommandReceivedEventArgs : EventArgs { public long ConnectionID { get; } public string Command { get; } public string Parameters { get; } public bool Ignore { get; set; } }
Public Event OnCommandReceived As OnCommandReceivedHandler Public Delegate Sub OnCommandReceivedHandler(sender As Object, e As FtpserverCommandReceivedEventArgs) Public Class FtpserverCommandReceivedEventArgs Inherits EventArgs Public ReadOnly Property ConnectionID As Long Public ReadOnly Property Command As String Public ReadOnly Property Parameters As String Public Property Ignore As Boolean End Class
Remarks
The component fires this event to notify the application of an incoming command. Set Ignore to True to stop the server from handling the command.
When the command has been processed, the server will report it via the CommandProcessed call.