An NDoc Documented Class Library |

# FTPConnection.Connect Method

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

public virtual void Connect();

#### Remarks

The ServerAddress property must be set prior to calling this method.

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

FTPConnection Class | EnterpriseDT.Net.Ftp Namespace