'Declaration Public Overloads Shared Sub Send( _ ByVal hostname As String, _ ByVal port As Integer, _ 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 ParamArray filesToSend() As String _ )
'Usage Dim hostname As String Dim port As Integer 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 filesToSend() As String QuickFtp.Send(hostname, port, authenticationMethod, verificationFlags, clientCertificate, dataChannelProtection, implicitAuthentication, remoteDestinationFolder, filesToSend)
public static void Send( string hostname, int port, AuthenticationMethod authenticationMethod, VerificationFlags verificationFlags, Certificate clientCertificate, DataChannelProtection dataChannelProtection, bool implicitAuthentication, string remoteDestinationFolder, params string[] 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.
- authenticationMethod
- The authentication method to use when connecting to the FTP server.
- verificationFlags
- The verification flags used to verify the FTP server's certificate.
- clientCertificate
- The certificate used when connecting to the FTP server. Can be null.
- dataChannelProtection
- The DataChannelProtection used during the communication. Ignored if implicitAuthentication is true.
- 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.
- remoteDestinationFolder
- The remote destination folder into which the files will be placed.
- filesToSend
- A list of strings representing the files to be transferred. File paths may not start with a \ or a /. If a path represents a folder, it must end with a / or a \.