Xceed FTP Library Documentation
Disconnect method
XceedFtp control reference > Methods > Disconnect method

Description

Terminates the connection with the FTP server.

If a file transfer or other operation is currently in progress, this method will return the FTP_E_BUSY error code. You should abort any operations in progress with the Abort property first. You can determine if an operation is in progress by checking the CurrentState property – only when the CurrentState property's value is fstConnected can this method be called with successful results.

Parameters

None

Declaration  
HRESULT Disconnect()

Applicable properties

CurrentState

Events triggered

LoggingCommandLine, ProcessCompleted