Xceed .NET Libraries Documentation
Send(String,Int32,String,String,AuthenticationMethod,VerificationFlags,Certificate,DataChannelProtection,Boolean,String,Boolean,Boolean,Boolean,ProxyClient,Int32,Boolean,RepresentationType,TextWriter,ISynchronizeInvoke,CertificateReceivedCallback,CertificateRequiredCallback,ByteProgressionCallback,ItemProgressionCallback,Object,TransferMode,String[]) Method


Xceed.Ftp Assembly > Xceed.Ftp Namespace > QuickFtp Class > Send Method : Send(String,Int32,String,String,AuthenticationMethod,VerificationFlags,Certificate,DataChannelProtection,Boolean,String,Boolean,Boolean,Boolean,ProxyClient,Int32,Boolean,RepresentationType,TextWriter,ISynchronizeInvoke,CertificateReceivedCallback,CertificateRequiredCallback,ByteProgressionCallback,ItemProgressionCallback,Object,TransferMode,String[]) Method
The hostname of the FTP server to connect to. An IP address can also be used.
The port of the FTP server to which to connect to. If 0 is passed, 990 is used if implicitAuthentication is true; otherwise, 21 is used.
The username used to connect to the FTP server.
The password used to connect to the FTP server.
The authentication method to use when connecting to the FTP server. Not applicable to the Compact Framework version.
The verification flags used to verify the FTP server's certificate. Not applicable to the Compact Framework version.
The certificate used when connecting to the FTP server. Can be null. Not applicable to the Compact Framework version.
The DataChannelProtection used during the communication. Ignored if implicitAuthentication is true. Not applicable to the Compact Framework version.
If true, the SSL handshake occurs at the very beginning of the connection; otherwise, the AUTH command is sent after the Welcome message to initiate the SSL handshake. Not applicable to the Compact Framework version.
The path of the remote folder where the file must be copied into

true if existing files are to be replaced; false otherwise.

Boolean value indicating if files contained within sub-folders should be gotten from the ftp host.
Boolean value indicating if the directory structure should be preserved in the destination folder.
The active proxy client for connecting to the FTP server.
The period of time, in seconds, after which an FTP operation should timeout.
Boolean value indicating whether the data connection should be established by the FTP server rather than by the client-side.
The default value indicating how the data is transferred to and from the FTP server.
The System.IO.TextWriter which will trace the communications between the client-side and the FTP server.
The object used to automatically redirect events on the main UI thread; null if not required. Not applicable to the Compact Framework version.
Delegate for CertificateReceived notification. Not applicable to the Compact Framework version.
Delegate for CertificateRequired notification. Not applicable to the Compact Framework version.
Delegate for ByteProgression notification.
Delegate for ItemProgression notification.
Opaque data that will be passed back to the event handler when an event is raised.

The transfer mode used to send data to and from an FTP server.

A list of strings representing the files to be put. File paths may not start with a \ or a /. If a path represents a folder, it must end with a / or a \.
Sends a list of files to a remote folder on an FTP server, specifying a port, username and password, an authentication method, whether authentication is implicit, verification flags, a certificate, data channel protection, whether existing files are replaced, files are sent recursively and/or passively, and paths are preserved at destination, a proxy, a time-out, default representation type, transfer mode,  delegates for notifications, a synchronizing object, etc.
Syntax
'Declaration
 
Public Overloads Shared Sub Send( _
   ByVal hostname As String, _
   ByVal port As Integer, _
   ByVal username As String, _
   ByVal password As String, _
   ByVal authenticationMethod As AuthenticationMethod, _
   ByVal verificationFlags As VerificationFlags, _
   ByVal clientCertificate As Certificate, _
   ByVal dataChannelProtection As DataChannelProtection, _
   ByVal implicitAuthentication As Boolean, _
   ByVal remoteDestinationFolder As String, _
   ByVal replaceExistingFiles As Boolean, _
   ByVal recursive As Boolean, _
   ByVal preservePaths As Boolean, _
   ByVal proxy As ProxyClient, _
   ByVal timeout As Integer, _
   ByVal passiveTransfer As Boolean, _
   ByVal defaultRepresentationType As RepresentationType, _
   ByVal traceWriter As TextWriter, _
   ByVal synchronizingObject As ISynchronizeInvoke, _
   ByVal certificateReceivedCallback As QuickFtp.CertificateReceivedCallback, _
   ByVal certificateRequiredCallback As QuickFtp.CertificateRequiredCallback, _
   ByVal byteProgressionCallback As QuickFtp.ByteProgressionCallback, _
   ByVal itemProgressionCallback As QuickFtp.ItemProgressionCallback, _
   ByVal userParams As Object, _
   ByVal transferMode As TransferMode, _
   ByVal ParamArray filesToSend() As String _
) 
'Usage
 
Dim hostname As String
Dim port As Integer
Dim username As String
Dim password As String
Dim authenticationMethod As AuthenticationMethod
Dim verificationFlags As VerificationFlags
Dim clientCertificate As Certificate
Dim dataChannelProtection As DataChannelProtection
Dim implicitAuthentication As Boolean
Dim remoteDestinationFolder As String
Dim replaceExistingFiles As Boolean
Dim recursive As Boolean
Dim preservePaths As Boolean
Dim proxy As ProxyClient
Dim timeout As Integer
Dim passiveTransfer As Boolean
Dim defaultRepresentationType As RepresentationType
Dim traceWriter As TextWriter
Dim synchronizingObject As ISynchronizeInvoke
Dim certificateReceivedCallback As QuickFtp.CertificateReceivedCallback
Dim certificateRequiredCallback As QuickFtp.CertificateRequiredCallback
Dim byteProgressionCallback As QuickFtp.ByteProgressionCallback
Dim itemProgressionCallback As QuickFtp.ItemProgressionCallback
Dim userParams As Object
Dim transferMode As TransferMode
Dim filesToSend() As String
 
QuickFtp.Send(hostname, port, username, password, authenticationMethod, verificationFlags, clientCertificate, dataChannelProtection, implicitAuthentication, remoteDestinationFolder, replaceExistingFiles, recursive, preservePaths, proxy, timeout, passiveTransfer, defaultRepresentationType, traceWriter, synchronizingObject, certificateReceivedCallback, certificateRequiredCallback, byteProgressionCallback, itemProgressionCallback, userParams, transferMode, filesToSend)

Parameters

hostname
The hostname of the FTP server to connect to. An IP address can also be used.
port
The port of the FTP server to which to connect to. If 0 is passed, 990 is used if implicitAuthentication is true; otherwise, 21 is used.
username
The username used to connect to the FTP server.
password
The password used to connect to the FTP server.
authenticationMethod
The authentication method to use when connecting to the FTP server. Not applicable to the Compact Framework version.
verificationFlags
The verification flags used to verify the FTP server's certificate. Not applicable to the Compact Framework version.
clientCertificate
The certificate used when connecting to the FTP server. Can be null. Not applicable to the Compact Framework version.
dataChannelProtection
The DataChannelProtection used during the communication. Ignored if implicitAuthentication is true. Not applicable to the Compact Framework version.
implicitAuthentication
If true, the SSL handshake occurs at the very beginning of the connection; otherwise, the AUTH command is sent after the Welcome message to initiate the SSL handshake. Not applicable to the Compact Framework version.
remoteDestinationFolder
The path of the remote folder where the file must be copied into
replaceExistingFiles

true if existing files are to be replaced; false otherwise.

recursive
Boolean value indicating if files contained within sub-folders should be gotten from the ftp host.
preservePaths
Boolean value indicating if the directory structure should be preserved in the destination folder.
proxy
The active proxy client for connecting to the FTP server.
timeout
The period of time, in seconds, after which an FTP operation should timeout.
passiveTransfer
Boolean value indicating whether the data connection should be established by the FTP server rather than by the client-side.
defaultRepresentationType
The default value indicating how the data is transferred to and from the FTP server.
traceWriter
The System.IO.TextWriter which will trace the communications between the client-side and the FTP server.
synchronizingObject
The object used to automatically redirect events on the main UI thread; null if not required. Not applicable to the Compact Framework version.
certificateReceivedCallback
Delegate for CertificateReceived notification. Not applicable to the Compact Framework version.
certificateRequiredCallback
Delegate for CertificateRequired notification. Not applicable to the Compact Framework version.
byteProgressionCallback
Delegate for ByteProgression notification.
itemProgressionCallback
Delegate for ItemProgression notification.
userParams
Opaque data that will be passed back to the event handler when an event is raised.
transferMode

The transfer mode used to send data to and from an FTP server.

filesToSend
A list of strings representing the files to be put. File paths may not start with a \ or a /. If a path represents a folder, it must end with a / or a \.
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

QuickFtp Class
QuickFtp Members
Overload List