Xceed .NET Libraries Documentation
FxpCopy(FtpClient,String,FtpClient,String) Method


Xceed.Ftp Assembly > Xceed.Ftp Namespace > FtpClient Class > FxpCopy Method : FxpCopy(FtpClient,String,FtpClient,String) Method
Directs two specified FTP clients to perform a FXP (server to server) file transfer from the specified source FTP server to the specified destination FTP server.
Syntax
'Declaration
 
Public Overloads Shared Sub FxpCopy( _
   ByVal sourceClient As FtpClient, _
   ByVal sourceFileName As String, _
   ByVal targetClient As FtpClient, _
   ByVal targetFileName As String _
) 
'Usage
 
Dim sourceClient As FtpClient
Dim sourceFileName As String
Dim targetClient As FtpClient
Dim targetFileName As String
 
FtpClient.FxpCopy(sourceClient, sourceFileName, targetClient, targetFileName)
public static void FxpCopy( 
   FtpClient sourceClient,
   string sourceFileName,
   FtpClient targetClient,
   string targetFileName
)

Parameters

sourceClient
sourceFileName
targetClient
targetFileName
Exceptions
ExceptionDescription
If a parameter is null.

If an empty string was specified.

If the property values of the source and/or destination FTP client prevent a proper FXP transfer. Refer to the exception message for details.

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

See Also

Reference

FtpClient Class
FtpClient Members
Overload List