Discuss this help topic in SecureBlackbox Forum

TElSFTPServer.OnFindClose

TElSFTPServer     See also     


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


This event is fired when your software has to stop searching and free the resources allocated for the search.

Declaration

[C#]
    event TElSFTPServerFindCloseEvent OnFindClose;
    delegate void TElSFTPServerFindCloseEvent(Object Sender, Object SearchRec, ref int ErrorCode, ref string Comment);

[VB.NET]
    Event OnFindClose As TElSFTPServerFindCloseEvent
    Delegate Sub TElSFTPServerFindCloseEvent(ByVal Sender As Object, ByVal SearchRec As Object, ByRef ErrorCode As Integer, ByRef Comment As String)

[Pascal]
    property OnFindClose: TSBSFTPServerFindCloseEvent;
    
    TSBSFTPServerFindCloseEvent = procedure(Sender : TObject; Data : pointer; var ErrorCode : integer; var Comment : string) of object;

[C++]
    void get_OnFindClose(TElSFTPServerFindCloseEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnFindClose(TElSFTPServerFindCloseEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TElSFTPServerFindCloseEvent)(void * _ObjectData, TObjectHandle Sender, void * SearchRec, int32_t &ErrorCode, char * pcComment, int32_t &szComment);

[PHP]
    TElSFTPServerFindCloseEvent|callable|NULL get_OnFindClose()
    void set_OnFindClose(TElSFTPServerFindCloseEvent|callable|NULL $Value)
    callable TElSFTPServerFindCloseEvent(TObject $Sender, TSBPointer|NULL $SearchRec, integer &$ErrorCode, string &$Comment)

[Java]
    TElSFTPServerFindCloseEvent getOnFindClose();
    void setOnFindClose(TElSFTPServerFindCloseEvent Value);
    TElSFTPServerFindCloseEvent.Callback OnFindClose = new TElSFTPServerFindCloseEvent.Callback() {
        public void TElSFTPServerFindCloseEventCallback(TObject Sender, TObject SearchRec, TSBInteger ErrorCode, TSBString Comment) {
            //...
        }
    }

Parameters

  • Data - Data parameter that was passed to the OnFindFirst event
  • ErrorCode - the error code, see values below
  • Comment - server comment
  • SearchRec - ...
  • pcComment - server comment
  • szComment - the length of pcComment.

Error codes

Description

    This event is fired when all required elements with specified requirements have been found and search resources must be freed. This event is fired after OnFindFirst or OnFindNext. The application can return the error code in ErrorCode parameter and textual comment in Comment parameter.

See also:     OnFindFirst     OnFindNext    

Discuss this help topic in SecureBlackbox Forum