Rebex FTP/SSL for .NET

Ftp.BeginSendCommand Method 

Executes a command on the FTP server.

public IAsyncResult BeginSendCommand(
   string command,
   AsyncCallback callback,
   object state
);

Parameters

command
Command (eg. "HELP").
callback
An optional asynchronous callback to be called when the operation is complete.
state
A user-provided object that identifies this particular asynchronous operation.

Return Value

An IAsyncResult that references the asynchronous operation.

Remarks

The BeginSendCommand/EndSendCommand pair must be followed by a call to ReadResponse or BeginReadResponse methods.

Use ReadResponse or BeginReadResponse and SendCommand or BeginSendCommand to implement various custom USER commands.

See Also

Ftp Class | Rebex.Net Namespace