Data.Cloud.AzureAPI.TAzureBlobService.RenewContainerLease

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function RenewContainerLease(const ContainerName: string; var LeaseId: string;  ResponseInfo: TCloudResponseInfo): Boolean;

C++

bool __fastcall RenewContainerLease(const System::UnicodeString ContainerName, System::UnicodeString &LeaseId, Data::Cloud::Cloudapi::TCloudResponseInfo* ResponseInfo);

Properties

Type Visibility Source Unit Parent
function public
Data.Cloud.AzureAPI.pas
Data.Cloud.AzureAPI.hpp
Data.Cloud.AzureAPI TAzureBlobService

Description

Attempts to renew the lease (lock for delete operations) with the specified identifier on the specified container.

RenewContainerLease accepts the following parameters:

  • ContainerName is the name of the target container.
  • LeaseId must be the GUID that is the identifier of the current lease on the specified container.
  • ResponseInfo is an optional instance of TCloudResponseInfo to store the information of the response.

RenewContainerLease returns True if the lease ID is released or False otherwise. Use a nil value if you do not need the information of the response.

See Also