Connect to the FTP server.
Namespace: EnterpriseDT.Net.Ftp.ProAssembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 8.0.0.20
Syntax
C# |
---|
public override void Connect() |
Visual Basic |
---|
Public Overrides Sub Connect |
Visual C++ |
---|
public: virtual void Connect() override |
Remarks
The ServerAddress property must be set prior to calling this method.
If explicit FTPS has been selected (see SecureFTPType) and AutoSecure is true (the default) then the component will try secure the secure connection immediately after successfully connecting. A secure connection will always be attempted in implicit FTPS is selected regardless of the value of AutoSecure.
If AutoLogin is true (the default) then the component will attempt to log in.
This method will throw an FTPException if the component is already connected to the server.