'Declaration Public Overloads Shared Sub Receive( _ ByVal hostname As String, _ ByVal port As Integer, _ ByVal username As String, _ ByVal password As String, _ ByVal localDestinationFolder As String, _ ByVal transferMode As TransferMode, _ ByVal ParamArray filesToReceive() As String _ )
'Usage Dim hostname As String Dim port As Integer Dim username As String Dim password As String Dim localDestinationFolder As String Dim transferMode As TransferMode Dim filesToReceive() As String QuickFtp.Receive(hostname, port, username, password, localDestinationFolder, transferMode, filesToReceive)
public static void Receive( string hostname, int port, string username, string password, string localDestinationFolder, TransferMode transferMode, params string[] filesToReceive )
Parameters
- hostname
- The hostname of the FTP server to connect to.
- port
- The port number on the FTP server to use. An IP address can also be used.
- username
- The username used to connect to the FTP server.
- password
- The password used to connect to the FTP server.
- localDestinationFolder
- The local destination folder into which the files will be placed.
- transferMode
The transfer mode used to send data to and from an FTP server.
- 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 \.