Connects to the specifified FTP host. The default FTP Port (21) is used.
Namespace:
KetLabs.FTPAssembly: Ftp (in Ftp.dll) Version: 1.0.0.19105 (1.0.0.*)
Syntax
| C# |
|---|
public void Connect( string host ) |
| Visual Basic (Declaration) |
|---|
Public Sub Connect ( _ host As String _ ) |
| Visual C++ |
|---|
public: void Connect( String^ host ) |
Parameters
- host
- Type: System..::.String
Host address to connect to.
Exceptions
| Exception | Condition |
|---|---|
| System.Net..::.WebException | Thrown in case of a network error |