Creates a new Ftp instance with the
specified connection properties.
Namespace: Jscape.FtpAssembly: Jscape.Ftp (in Jscape.Ftp.dll) Version: 2.4.5.0
Syntax
C# |
---|
public Ftp( string host, string user, string pwd, string localDirectory ) |
Visual Basic |
---|
Public Sub New ( _ host As String, _ user As String, _ pwd As String, _ localDirectory As String _ ) |
Visual C++ |
---|
public: Ftp( String^ host, String^ user, String^ pwd, String^ localDirectory ) |
Parameters
- host
- Type: System..::..String
The hostname of the FTP server.
- user
- Type: System..::..String
The username of the FTP user.
- pwd
- Type: System..::..String
The password of the FTP user.
- localDirectory
- Type: System..::..String
The local directory used for uploading and downloading files.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentException | If local directory does not exist. |