Ftp.SendCommandAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.9083)
SendCommandAsync(String, Object)
Begins asynchronous SendCommand operation. Executes a command on the FTP server.
Declaration
public Task SendCommandAsync(string command, object state = null)
Parameters
Type | Name | Description |
---|---|---|
String | command | Command (e.g. "HELP"). |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task |
Remarks
Must be followed by a call to ReadResponse method.
Use ReadResponse and SendCommand to implement various custom commands.