Data.Cloud.AzureAPI.TAzureBlobService.ChangeBlobLease
Delphi
function ChangeBlobLease(const ContainerName, BlobName: string; const LeaseID, ProposedLeaseID: string; ResponseInfo: TCloudResponseInfo): Boolean;
C++
bool __fastcall ChangeBlobLease(const System::UnicodeString ContainerName, const System::UnicodeString BlobName, const System::UnicodeString LeaseID, const System::UnicodeString ProposedLeaseID, 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 change the identifier of a lease (lock for write and delete operations) on the specified blob of the specified container.
ChangeBlobLease accepts the following parameters:
ContainerName
is the name of the container where the target blob belongs.BlobName
is the name of the target blob.LeaseId
must be the GUID that is the identifier of the current lease on the specified blob. If the proposed GUID (ProposedLeaseID
) is used, ChangeBlobLease changes the value ofLeaseId
to the new GUID.ResponseInfo
is 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.
ChangeBlobLease returns True
if the lease ID is modified or False
otherwise.
See Also
- Data.Cloud.AzureAPI.TAzureBlobService.AcquireBlobLease
- Data.Cloud.AzureAPI.TAzureBlobService.BreakBlobLease
- Data.Cloud.AzureAPI.TAzureBlobService.ReleaseBlobLease
- Data.Cloud.AzureAPI.TAzureBlobService.RenewBlobLease