Discuss this help topic in SecureBlackbox Forum

TElSFTPServer.OnSetAttributes

TElSFTPServer     See also     


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


This event is fired when your software has to set file attributes.

Declaration

[C#/Java]
    event TSBSFTPServerSetAttributesEvent OnSetAttributes;
    delegate void TSBSFTPServerSetAttributesEvent(object Sender, string Path, TElSftpFileAttributes Attributes, ref int ErrorCode, ref string Comment)

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

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

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

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

Parameters

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


Description

    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