An NDoc Documented Class Library

ExFTPConnection.Connect Method 

Connect to the FTP server and (if AutoLogin is set) log into the server.

public override void Connect();

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.

See Also

ExFTPConnection Class | EnterpriseDT.Net.Ftp Namespace