edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
Connect to the FTP server and (if AutoLogin is set) log into the server.

Namespace: EnterpriseDT.Net.Ftp
Assembly: 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.

PropertyDescription
ProtocolThe protocol to use: SFTP, explicit FTPS, implicit FTPS or plain FTP.
ServerAddressThe domain-name or IP-address of the server.
UserNameUser-name of account on the server.
PasswordPassword 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