Disconnect Event
Reports SFTP connection closure.
Syntax
typedef struct { int CloseReason; } TsbiSFTPClientDisconnectEventParams; typedef void __fastcall (__closure *TsbiSFTPClientDisconnectEvent)(System::TObject* Sender, TsbiSFTPClientDisconnectEventParams *e); __property TsbiSFTPClientDisconnectEvent OnDisconnect = { read=FOnDisconnect, write=FOnDisconnect };
Remarks
The component fires this event to report connection closure. No more SFTP activity could be done after the disconnect.