Disconnect Event
This event is fired when the SFTP subsystem connection is closed.
Syntax
typedef struct { int CloseReason; } TsbiSSHClientDisconnectEventParams; typedef void __fastcall (__closure *TsbiSSHClientDisconnectEvent)(System::TObject* Sender, TsbiSSHClientDisconnectEventParams *e); __property TsbiSSHClientDisconnectEvent OnDisconnect = { read=FOnDisconnect, write=FOnDisconnect };
Remarks
Do not perform any file operations after this event has been fired.