edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
Asynchronously transfer a file between FTP servers using FXP.

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 9.4.0.40

Syntax

C#
public virtual IAsyncResult BeginTransferFileFXP(
	ExFTPConnection destination,
	string sourceFile,
	string destinationFile,
	AsyncCallback callback,
	Object state
)
Visual Basic
Public Overridable Function BeginTransferFileFXP ( _
	destination As ExFTPConnection, _
	sourceFile As String, _
	destinationFile As String, _
	callback As AsyncCallback, _
	state As Object _
) As IAsyncResult
Visual C++
public:
virtual IAsyncResult^ BeginTransferFileFXP(
	ExFTPConnection^ destination, 
	String^ sourceFile, 
	String^ destinationFile, 
	AsyncCallback^ callback, 
	Object^ state
)

Parameters

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

Return Value

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