Discuss this help topic in SecureBlackbox Forum

TElSFTPServer.OnRemove

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.

Declaration

[C#/Java]
    event TElSFTPServerRemoveEvent OnRemove;
    delegate void TElSFTPServerRemoveEvent(Object Sender, string Path, ref int ErrorCode, ref string Comment);

[VB.NET]
    Event OnRemove As TElSFTPServerRemoveEvent
    Delegate Sub TElSFTPServerRemoveEvent(ByVal Sender As Object, ByVal Path As String, ByRef ErrorCode As Integer, ByRef Comment As String)

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

[C++]
    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);

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

Parameters

  • 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:


Description

    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