Discuss this help topic in SecureBlackbox Forum

TElSimpleSFTPClient.Unblock

TElSimpleSFTPClient     See also     


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


Removes a previously acquired byte-range lock on the specified handle.

Declaration

[C#]
    void Unblock(byte[] Handle, long Offset, long Length);

[VB.NET]
    Sub Unblock(ByVal Handle As Byte(), ByVal Offset As Long, ByVal Length As Long)

[Pascal]
    procedure Unblock(const Handle : TSBSftpFileHandle; Offset, Length : Int64);

[C++]
    void Unblock(const std::vector<uint8_t> &Handle, int64_t Offset, int64_t Length);

[PHP]
    void Unblock(array of byte|string|NULL $Handle, integer $Offset, integer $Length)

[Java]
    void unblock(byte[] Handle, long Offset, long Length);

Parameters

  • Handle - handle on which a Block method has previously been called.
  • Offset - beginning of the byte-range to unlock.
  • Length - number of bytes in the range to unlock. The special value 0 means lock from Offset to the end of the file.

LockMask values:

Return value

    True if operation was completed successfully;
    False otherwise.

Description

    Use this method to remove a previously acquired byte-range lock on the specified handle.
    In case of error, EElSFTPError exception containing SFTP error code, is raised. For more information on error handling, please read the corresponding how-to article.

See also:     Block    

Discuss this help topic in SecureBlackbox Forum