Data.Cloud.AzureAPI.TAzureBlobService.ClearPage
Delphi
function ClearPage(ContainerName, BlobName: string; StartPage, PageCount: Integer; const LeaseId: string = ''; ResponseInfo: TCloudResponseInfo = nil): Boolean; overload;
function ClearPage(ContainerName, BlobName: string; StartPage, PageCount: Integer; ActionConditional: TBlobActionConditional; const LeaseId: string = ''; ResponseInfo: TCloudResponseInfo = nil): Boolean; overload;
C++
bool __fastcall ClearPage(System::UnicodeString ContainerName, System::UnicodeString BlobName, int StartPage, int PageCount, const System::UnicodeString LeaseId = System::UnicodeString(), Data::Cloud::Cloudapi::TCloudResponseInfo* ResponseInfo = (Data::Cloud::Cloudapi::TCloudResponseInfo*)(0x0))/* overload */;
bool __fastcall ClearPage(System::UnicodeString ContainerName, System::UnicodeString BlobName, int StartPage, int PageCount, const TBlobActionConditional &ActionConditional, const System::UnicodeString LeaseId = System::UnicodeString(), Data::Cloud::Cloudapi::TCloudResponseInfo* ResponseInfo = (Data::Cloud::Cloudapi::TCloudResponseInfo*)(0x0))/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Data.Cloud.AzureAPI.pas Data.Cloud.AzureAPI.hpp |
Data.Cloud.AzureAPI | TAzureBlobService |
Description
Clears the specified range and releases the space used for storage for that range.
ClearPage is used to clear the specified range and releases the spaced used for storage for that range.
There are two overloaded ClearPage methods. For the second overloaded method, the supported action conditionals include:
- IfModifiedSince
- IfUnmodifiedSince
- IfMatch
- IfNoneMatch
- if-sequence-number-lte
- if-sequence-number-lt
- if-sequence-number-eq
The following table describes the parameters:
Parameter | Description |
---|---|
|
The name of the container the blob is in. |
|
The name of the page blob. |
|
The zero-based index of the first page this action applies to. |
|
The number of pages this action applies to. |
|
Conditions that must be met for the action to be executed. |
|
The lease ID, required if the blob is locked. |
|
The optional class for storing response info into. |
The method returns True if the action is successful, and False otherwise.