edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing

ExFTPConnectionBeginTransferFileFXP Method

Asynchronously transfer a file between FTP servers using FXP.

Definition

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.7.0.0
C#
public virtual IAsyncResult BeginTransferFileFXP(
	ExFTPConnection destination,
	string sourceFile,
	string destinationFile,
	AsyncCallback callback,
	Object state
)

Parameters

destination  ExFTPConnection
Connection to the destination server.
sourceFile  String
name of file on source server to transfer
destinationFile  String
name of file to be written to destination server
callback  AsyncCallback
The AsyncCallback delegate.
state  Object
An object that contains state information for this request.

Return Value

IAsyncResult
An FTPTask that references the asynchronous upload.

Remarks

For this to succeed, both FTP servers must have FXP enabled. The source (which is this connection's server) and destination FTPClients must already be connected to their FTP servers when this method is called.

The file will be transferred in whatever mode is currently set, i.e. BINARY or ASCII.

The file must be in the current working directory of the source, and will be placed in the current working directory of the destination.

See Also