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


Xceed.Ftp Assembly > Xceed.Ftp Namespace > QuickFtp Class > Receive Method : Receive(String,Int32,String,String[]) Method
The hostname of the FTP server to connect to. An IP address can also be used.
The port number on the FTP server to use.
The local destination folder into which the files will be placed.
A list of strings representing the files to be gotten. File paths may not start with a \ or a /. If a path represents a folder, it must end with a / or a \.
Receives a list of files from an FTP server to a local folder, specifying a port number.
Syntax
'Declaration
 
Public Overloads Shared Sub Receive( _
   ByVal hostname As String, _
   ByVal port As Integer, _
   ByVal localDestinationFolder As String, _
   ByVal ParamArray filesToReceive() As String _
) 
'Usage
 
Dim hostname As String
Dim port As Integer
Dim localDestinationFolder As String
Dim filesToReceive() As String
 
QuickFtp.Receive(hostname, port, localDestinationFolder, filesToReceive)
public static void Receive( 
   string hostname,
   int port,
   string localDestinationFolder,
   params string[] filesToReceive
)

Parameters

hostname
The hostname of the FTP server to connect to. An IP address can also be used.
port
The port number on the FTP server to use.
localDestinationFolder
The local destination folder into which the files will be placed.
filesToReceive
A list of strings representing the files to be gotten. 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