Discuss this help topic in SecureBlackbox Forum

TElSFTPServer.OnRequestAttributes2

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

Declaration

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

[VB.NET]
    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)

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

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

[PHP]
    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)

[Java]
    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) {
            //...
        }
    }

Parameters

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

Description

    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