Discuss this help topic in SecureBlackbox Forum

TElSftpClient.OnOpenFile

TElSftpClient     See also     


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


This event is fired when the requested file is opened

Declaration

[C#]
    event TSBSftpFileOpenEvent OnOpenFile;
    delegate void TSBSftpFileOpenEvent(Object Sender, byte[] Handle);

[VB.NET]
    Event OnOpenFile As TSBSftpFileOpenEvent
    Delegate Sub TSBSftpFileOpenEvent(ByVal Sender As Object, ByVal Handle As Byte())

[Pascal]
    property OnOpenFile : TSBSftpFileOpenEvent;
    TSBSftpFileOpenEvent = procedure (Sender: TObject; Handle : TSBSftpFileHandle) of object;
    type TSBSftpFileHandle = string;

[C++]
    void get_OnOpenFile(TSBSftpFileOpenEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnOpenFile(TSBSftpFileOpenEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBSftpFileOpenEvent)(void * _ObjectData, TObjectHandle Sender, const uint8_t pHandle[], int32_t szHandle);

[PHP]
    TSBSftpFileOpenEvent|callable|NULL get_OnOpenFile()
    void set_OnOpenFile(TSBSftpFileOpenEvent|callable|NULL $Value)
    callable TSBSftpFileOpenEvent(TObject $Sender, string $Handle)

[Java]
    TSBSftpFileOpenEvent getOnOpenFile();
    void setOnOpenFile(TSBSftpFileOpenEvent Value);
    TSBSftpFileOpenEvent.Callback OnOpenFile = new TSBSftpFileOpenEvent.Callback() {
        public void TSBSftpFileOpenEventCallback(TObject Sender, byte[] Handle) {
            //...
        }
    }

Parameters

  • Handle - the handle by which the opened file is identified afterwards
  • pHandle -
  • szHandle - the length of pcHandle.

Description

    This event is fired by TElSftpClient when the file specified by CreateFile or OpenFile was successfully opened.

See also:     OnDirectoryListing     CreateFile     OpenFile     CloseHandle    

Discuss this help topic in SecureBlackbox Forum