Discuss this help topic in SecureBlackbox Forum


TElSFTPServer     See also     

Filter: C#/Java  VB.NET  Pascal  C++  PHP  

This event is fired when your software has to remove some file or directory.


    event TElSFTPServerRemoveEvent OnRemove;
    delegate void TElSFTPServerRemoveEvent(Object Sender, string Path, ref int ErrorCode, ref string Comment);

    Event OnRemove As TElSFTPServerRemoveEvent
    Delegate Sub TElSFTPServerRemoveEvent(ByVal Sender As Object, ByVal Path As String, ByRef ErrorCode As Integer, ByRef Comment As String)

    property OnRemove: TSBSFTPServerRemoveEvent;
    TSBSFTPServerRemoveEvent = procedure(Sender : TObject; const Path : string; var ErrorCode : integer; var Comment : string) of object;

    void get_OnRemove(TElSFTPServerRemoveEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnRemove(TElSFTPServerRemoveEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TElSFTPServerRemoveEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcPath, int32_t szPath, int32_t &ErrorCode, char * pcComment, int32_t &szComment);

    TElSFTPServerRemoveEvent|callable|NULL get_OnRemove()
    void set_OnRemove(TElSFTPServerRemoveEvent|callable|NULL $Value)
    callable TElSFTPServerRemoveEvent(TObject $Sender, string $Path, integer &$ErrorCode, string &$Comment)


  • Path - specifies the path to a file or directory to be removed
  • ErrorCode - the error code, see values below
  • Comment - server comment
  • pcPath - specifies the path to a file or directory to be removed
  • szPath - the length of pcPath.
  • pcComment - server comment
  • szComment - the length of pcComment.

Error codes values:


    This event is fired when the file or directory has to be removed.
The application can return the error code in ErrorCode parameter and textual comment in Comment parameter.

See also:     OnCreateDirectory     OnCreateSymLink    

Discuss this help topic in SecureBlackbox Forum