Xceed FTP Library Documentation
XceedFtp control reference / Methods / Connect method
In This Topic
    Connect method
    In This Topic

    Description

    Establishes a connection to an FTP server.

    The FTP server to connect to must be specified by setting the ServerAddress property. Please see the "applicable properties" section below to find out which other properties are referred to by this method.

    This method can only be used when the CurrentState property's value is fstNotConnected.

    Parameters

    None

    Remarks

    Methods that send the PWD command do not report errors in the case where the PWD command fails. For example, if the Connect method successfully connects and logs on but the PWD command fails, the Connect method will still succeed and remain connected.

    Declaration  
    HRESULT Connect()

    Applicable properties

    AccountName, CurrentFolder, CurrentState, Password, ServerAddress, ServerPort, UserName, AutoRefreshCurrentFolder

    Events triggered

    LoggingCommandLine, ProcessCompleted