Ftp Object : Logout Method |
Visual Basic |
---|
Public Sub Logout() |
Sends the ftpQuit command and closes the connection.
If Timeout is greater than 0, Logout blocks until the connection is closed or a ptTimeout error occurs.
If Timeout is 0, Logout immediately returns and the Progress event fires with FtpCmd = ftpQuit when the reply is received, and then the State event fires when State changes to tcpClosed.
This method may generate the following error code (refer to ErrorConstants for a complete list of error codes):