Discuss this help topic in SecureBlackbox Forum


TElSFTPServer     See also     

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

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)

    TElSFTPServerRequestAttributes2Event getOnRequestAttributes2();
    void setOnRequestAttributes2(TElSFTPServerRequestAttributes2Event Value);
    TElSFTPServerRequestAttributes2Event.Callback OnRequestAttributes2 = new TElSFTPServerRequestAttributes2Event.Callback() {
        public void TElSFTPServerRequestAttributes2EventCallback(TObject Sender, TObject Data, TElSftpFileAttributes Attributes, TSBInteger ErrorCode, TSBString 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