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 TSBSFTPServerSetAttributesEvent OnSetAttributes;
    delegate void TSBSFTPServerSetAttributesEvent(object Sender, string Path, TElSftpFileAttributes Attributes, ref int ErrorCode, ref string Comment)

    Event OnSetAttributes As TSBSFTPServerSetAttributesEvent
    Delegate Sub TSBSFTPServerSetAttributesEvent(ByVal Sender As Object, ByVal Path As String, ByVal Attributes As TElSftpFileAttributes, ByRef ErrorCode As Integer, ByRef Comment As String)

    property OnSetAttributes: TSBSFTPServerSetAttributesEvent;
    TSBSFTPServerSetAttributesEvent = procedure(Sender : TObject; const Path : string; Attributes : TElSftpFileAttributes; var ErrorCode : integer; var Comment : string) of object;

    void get_OnSetAttributes(TElSFTPServerSetAttributesEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnSetAttributes(TElSFTPServerSetAttributesEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TElSFTPServerSetAttributesEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcPath, int32_t szPath, TElSftpFileAttributesHandle Attributes, int32_t &ErrorCode, char * pcComment, int32_t &szComment);

    TElSFTPServerSetAttributesEvent|callable|NULL get_OnSetAttributes()
    void set_OnSetAttributes(TElSFTPServerSetAttributesEvent|callable|NULL $Value)
    callable TElSFTPServerSetAttributesEvent(TObject $Sender, string $Path, TElSftpFileAttributes $Attributes, integer &$ErrorCode, string &$Comment)


  • Path - path to file
  • Attributes - specifies the new attributes for a file
  • ErrorCode - the error code, see values below
  • Comment - server comment
  • pcPath - path to file
  • szPath - the length of pcPath.
  • 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:     OnSetAttributes2     OnRequestAttributes     OnRequestAttributes2    

Discuss this help topic in SecureBlackbox Forum