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 set file attributes.


    event TSBSFTPServerSetAttributes2Event OnSetAttributes2;
    delegate void TSBSFTPServerSetAttributes2Event(object Sender, object Data, TElSftpFileAttributes Attributes, ref int ErrorCode, ref string Comment);

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

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

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

    TElSFTPServerSetAttributes2Event|callable|NULL get_OnSetAttributes2()
    void set_OnSetAttributes2(TElSFTPServerSetAttributes2Event|callable|NULL $Value)
    callable TElSFTPServerSetAttributes2Event(TObject $Sender, TSBPointer|NULL $Data, TElSftpFileAttributes $Attributes, integer &$ErrorCode, string &$Comment)


  • Data - data corresponding with the opened file
  • Attributes - specifies the new attributes for a file
  • 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 have to be set.
The application can return the error code in ErrorCode parameter and textual comment in Comment parameter.

See also:     OnSetAttributes     OnRequestAttributes     OnRequestAttributes2    

Discuss this help topic in SecureBlackbox Forum