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 retrieve the attributes for a specified file


    event TElSFTPServerRequestAttributes2Event OnRequestAttributes2;
    delegate void TElSFTPServerRequestAttributes2Event(Object Sender, Object Data, TElSftpFileAttributes Attributes, ref int ErrorCode, ref string Comment);

    Event OnRequestAttributes2 As TElSFTPServerRequestAttributes2Event
    Delegate Sub TElSFTPServerRequestAttributes2Event(ByVal Sender As Object, ByVal Data As Object, ByVal Attributes As TElSftpFileAttributes, ByRef ErrorCode As Integer, ByRef Comment As String)

    property OnRequestAttributes2: TSBSFTPServerRequestAttributesEvent2;
    TSBSFTPServerRequestAttributes2Event = procedure(Sender : TObject; Data: pointer; Attributes : TElSftpFileAttributes; var ErrorCode : integer; var Comment : string) of object;

    void get_OnRequestAttributes2(TElSFTPServerRequestAttributes2Event &pMethodOutResult, void * &pDataOutResult);
    void set_OnRequestAttributes2(TElSFTPServerRequestAttributes2Event pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TElSFTPServerRequestAttributes2Event)(void * _ObjectData, TObjectHandle Sender, void * Data, TElSftpFileAttributesHandle Attributes, int32_t &ErrorCode, char * pcComment, int32_t &szComment);

    TElSFTPServerRequestAttributes2Event|callable|NULL get_OnRequestAttributes2()
    void set_OnRequestAttributes2(TElSFTPServerRequestAttributes2Event|callable|NULL $Value)
    callable TElSFTPServerRequestAttributes2Event(TObject $Sender, TSBPointer|NULL $Data, TElSftpFileAttributes $Attributes, integer &$ErrorCode, string &$Comment)


  • Data - data corresponding to the open file
  • Attributes - object with attributes
  • ErrorCode - the error code, see values below
  • Comment - server comment
  • pcComment - server comment
  • szComment - the length of pcComment.

Error codes values:


    This event is fired when file attributes are required.
The application can return the error code in ErrorCode parameter and textual comment in Comment parameter.

See also:     OnRequestAttributes     OnSetAttributes     OnSetAttributes2     OnRequestAbsolutePath     OnExtendedRequest    

Discuss this help topic in SecureBlackbox Forum