Callback method to be called when the asynchronous operation is completed.
state
An object containing state information for this operation.
Return Value
An System.IAsyncResult representing the status of the asynchronous operation.
Remarks
The BeginSendCustomCommand method is used to send FTP commands. This means that commands you enter using the Windows command-line FTP (such as "dir", "put" or "debug") are not the commands that are actually sent to the FTP server. Although these commands might be recognized by some FTP servers, they are not guaranteed to work!.
When sending a custom FTP command, the local folder separator character will not be replaced by the FtpClient.ServerFolderSeparator to allow the local folder separator character to be sent "as is".
Not all commands are supported by all FTP servers. In order to determine which commands are supported, you can use the BeginSendCustomCommand%M:Xceed.Ftp.AsyncFtpClient.EndSendCustomCommand(System.IAsyncResult)% methods to send the "HELP" command. For example: ftp.SendCustomCommand( "HELP" );.
When using a callback, the System.IAsyncResult is provided as a parameter. You should call EndSendCustomCommand in that callback. When NOT providing a callback, you should keep the returned IAsyncResult and call EndSendCustomCommand with it when ready to complete. In this later case, the call to EndSendCustomCommand may block until the operation completes.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2