Disconnect Event
Reports SFTP connection closure.
Syntax
type TDisconnectEvent = procedure ( Sender: TObject; CloseReason: Integer ) of Object;
property OnDisconnect: TDisconnectEvent read FOnDisconnect write FOnDisconnect;
Remarks
The component fires this event to report connection closure. No more SFTP activity could be done after the disconnect.