Xceed .NET Libraries Documentation
Send(String,Int32,String,String,String,String[]) Method


Xceed.Ftp Assembly > Xceed.Ftp Namespace > QuickFtp Class > Send Method : Send(String,Int32,String,String,String,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.
The username used to connect to the FTP server.
The password used to connect to the FTP server.
The remote destination folder into which the files will be placed.
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 \.
Sends a list of files to a remote folder on an FTP server, specifying a port number and a username and password.
Syntax
'Declaration
 
Public Overloads Shared Sub Send( _
   ByVal hostname As String, _
   ByVal port As Integer, _
   ByVal username As String, _
   ByVal password As String, _
   ByVal remoteDestinationFolder As String, _
   ByVal ParamArray filesToSend() As String _
) 
'Usage
 
Dim hostname As String
Dim port As Integer
Dim username As String
Dim password As String
Dim remoteDestinationFolder As String
Dim filesToSend() As String
 
QuickFtp.Send(hostname, port, username, password, remoteDestinationFolder, filesToSend)
public static void Send( 
   string hostname,
   int port,
   string username,
   string password,
   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.
username
The username used to connect to the FTP server.
password
The password used to connect to the FTP server.
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 \.
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