ExFTPConnectionBeginTransferFileFXP Method |
Asynchronously transfer a file between FTP servers using FXP.
Namespace:
EnterpriseDT.Net.Ftp
Assembly:
edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.3.0.0
Syntaxpublic virtual IAsyncResult BeginTransferFileFXP(
ExFTPConnection destination,
string sourceFile,
string destinationFile,
AsyncCallback callback,
Object state
)
Public Overridable Function BeginTransferFileFXP (
destination As ExFTPConnection,
sourceFile As String,
destinationFile As String,
callback As AsyncCallback,
state As Object
) As IAsyncResult
public:
virtual IAsyncResult^ BeginTransferFileFXP(
ExFTPConnection^ destination,
String^ sourceFile,
String^ destinationFile,
AsyncCallback^ callback,
Object^ state
)
abstract BeginTransferFileFXP :
destination : ExFTPConnection *
sourceFile : string *
destinationFile : string *
callback : AsyncCallback *
state : Object -> IAsyncResult
override BeginTransferFileFXP :
destination : ExFTPConnection *
sourceFile : string *
destinationFile : string *
callback : AsyncCallback *
state : Object -> IAsyncResult
Parameters
- destination
- Type: EnterpriseDT.Net.FtpExFTPConnection
Connection to the destination server. - sourceFile
- Type: SystemString
name of file on source server to transfer - destinationFile
- Type: SystemString
name of file to be written to destination server - callback
- Type: SystemAsyncCallback
The AsyncCallback delegate. - state
- Type: SystemObject
An object that contains state information for this request.
Return Value
Type:
IAsyncResultAn
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