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


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

    Event OnSetAttributes2 As TElSFTPServerSetAttributes2Event
    Delegate Sub TElSFTPServerSetAttributes2Event(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)

    TElSFTPServerSetAttributes2Event getOnSetAttributes2();
    void setOnSetAttributes2(TElSFTPServerSetAttributes2Event Value);
    TElSFTPServerSetAttributes2Event.Callback OnSetAttributes2 = new TElSFTPServerSetAttributes2Event.Callback() {
        public void TElSFTPServerSetAttributes2EventCallback(TObject Sender, TObject Data, TElSftpFileAttributes Attributes, TSBInteger ErrorCode, TSBString 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