ComponentSpace FTP Class Library Reference

FtpClient.Download Method 

Download the remote file's contents to the local file.

[Visual Basic]
Public Shared Sub Download( _
   ByVal serverAddress As String, _
   ByVal userName As String, _
   ByVal password As String, _
   ByVal transferMode As TransferMode, _
   ByVal sourcePathName As String, _
   ByVal destinationPathName As String _
)
[C#]
public static void Download(
   string serverAddress,
   string userName,
   string password,
   TransferMode transferMode,
   string sourcePathName,
   string destinationPathName
);

Parameters

serverAddress
The server address (eg. 207.46.133.140 or ftp.microsoft.com).
userName
The FTP user name eg. anonymous.
password
The FTP password eg. your email address.
transferMode
The transfer mode - ASCII or binary.
sourcePathName
The remote file path name.
destinationPathName
The local file path name.

Exceptions

Exception Type Condition
FtpException Thrown when the download fails.

See Also

FtpClient Class | ComponentSpace.Ftp Namespace