Data.Cloud.AzureAPI.TAzureBlobService.ChangeContainerLease
Delphi
function ChangeContainerLease(const AContainerName: string; var ALeaseID: string; const AProposedLeaseID: string; const AResponseInfo: TCloudResponseInfo): Boolean;
C++
bool __fastcall ChangeContainerLease(const System::UnicodeString AContainerName, System::UnicodeString &ALeaseID, const System::UnicodeString AProposedLeaseID, 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 change the identifier of a lease (lock for delete operations) on the specified container.
ChangeContainerLease 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. If the proposed GUID (ProposedLeaseID) is used, ChangeContainerLease changes the value ofLeaseIdto the new GUID.ResponseInfois an optional instance of TCloudResponseInfo to store the information of the response. Use a nil value if you do not need the information of the response.
ChangeContainerLease returns True if the lease ID is modified or False otherwise.