Connect to the FTP server and (if AutoLogin is set) log into the server.
Namespace: EnterpriseDT.Net.FtpAssembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 9.4.0.40
Syntax
C# |
---|
public override void Connect() |
Visual Basic |
---|
Public Overrides Sub Connect |
Visual C++ |
---|
public: virtual void Connect() override |
Remarks
If this component is being used on a form or within another component then it is a good idea to use the "Connection Tester" to test the property settings.
Connections are not opened until the Connect()()()() method is called. Connection-, Authentication-, and Security-related properties should be set prior to opening the connection.
At a minimum, the following properties should be set prior to connection.
Property | Description |
---|---|
Protocol | The protocol to use: SFTP, explicit FTPS, implicit FTPS or plain FTP. |
ServerAddress | The domain-name or IP-address of the server. |
UserName | User-name of account on the server. |
Password | Password of account on the server. |
If AutoLogin is true then the component will attempt to log in immediately after successfully connecting.
This method will throw an FTPException if the component is already connected to the server.