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.
None
Declaration | |
---|---|
HRESULT Disconnect() |
LoggingCommandLine, ProcessCompleted