Discuss this help topic in SecureBlackbox Forum

TElWinAzureDataStorage.LockObject

TElWinAzureDataStorage     See also     


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


Locks an object in the storage.

Declaration

[C#]
    string LockObject(string ContainerName, string Name, int Seconds, string SharedAccessSignature);

[VB.NET]
    Function LockObject(ByVal ContainerName As String, ByVal Name As String, ByVal Seconds As Integer, ByVal SharedAccessSignature As String) As String

[Pascal]
    function LockObject(const ContainerName : string; const Name : string; Seconds : integer; const SharedAccessSignature : string): string;

[C++]
    void LockObject(const std::string &ContainerName, const std::string &Name, int32_t Seconds, const std::string &SharedAccessSignature, std::string &OutResult);

[PHP]
    string LockObject(string $ContainerName, string $Name, integer $Seconds, string $SharedAccessSignature)

[Java]
    String lockObject(String ContainerName, String Name, int Seconds, String SharedAccessSignature);

Parameters

  • ContainerName - name of the container where the desired object belongs.
  • Name - name of the desired object.
  • Seconds - specifies the duration of the lease in seconds. Value of -1 defines a lease that never expires.
  • SharedAccessSignature - contains the Shared Access Signature (SAS).

Return value

    Returns the proposed lease ID.

Description

    Call this method to lock an object in the storage.

See also:     RenewObjectLock     UnlockObject    

Discuss this help topic in SecureBlackbox Forum