Data.Cloud.AzureAPI.TAzureBlobService.RenewContainerLease
Delphi
function RenewContainerLease(const AContainerName: string; var ALeaseId: string; const AResponseInfo: TCloudResponseInfo): Boolean;
C++
bool __fastcall RenewContainerLease(const System::UnicodeString AContainerName, System::UnicodeString &ALeaseId, Data::Cloud::Cloudapi::TCloudResponseInfo* const AResponseInfo);
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:
ContainerNameis the name of the target container.LeaseIdmust be the GUID that is the identifier of the current lease on the specified container.ResponseInfois 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.