Data.Cloud.AzureAPI.TAzureBlobService.PutBlockList
Delphi
function PutBlockList(ContainerName, BlobName: string; BlockList: TList<TAzureBlockListItem>; Properties: TStrings = nil; Metadata: TStrings = nil; const LeaseId: string = ''; const ContentMD5: string = ''; ResponseInfo: TCloudResponseInfo = nil): Boolean; overload;
function PutBlockList(const AContainerName, ABlobName, ALeaseId, AContentMD5: string; ABlockList: array of TAzureBlockListItem; AProperties, AMetadata: array of TPair<string, string>; const AResponseInfo: TCloudResponseInfo): Boolean; overload;
C++
bool __fastcall PutBlockList(System::UnicodeString ContainerName, System::UnicodeString BlobName, System::Generics::Collections::TList__1<TAzureBlockListItem>* BlockList, System::Classes::TStrings* Properties = (System::Classes::TStrings*)(0x0), System::Classes::TStrings* Metadata = (System::Classes::TStrings*)(0x0), const System::UnicodeString LeaseId = System::UnicodeString(), const System::UnicodeString ContentMD5 = System::UnicodeString(), Data::Cloud::Cloudapi::TCloudResponseInfo* ResponseInfo = (Data::Cloud::Cloudapi::TCloudResponseInfo*)(0x0))/* overload */;
bool __fastcall PutBlockList(const System::UnicodeString AContainerName, const System::UnicodeString ABlobName, const System::UnicodeString ALeaseId, const System::UnicodeString AContentMD5, TAzureBlockListItem *ABlockList, const int ABlockList_High, System::Generics::Collections::TPair__2<System::UnicodeString,System::UnicodeString> *AProperties, const int AProperties_High, System::Generics::Collections::TPair__2<System::UnicodeString,System::UnicodeString> *AMetadata, const int AMetadata_High, Data::Cloud::Cloudapi::TCloudResponseInfo* const AResponseInfo)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Data.Cloud.AzureAPI.pas Data.Cloud.AzureAPI.hpp |
Data.Cloud.AzureAPI | TAzureBlobService |
Description
Specifies the list of blocks to form the blob content from.
PutBlockList specifies the list of blocks to form the blob content from.
The list of blocks is used to build the given blob's content. The blocks can either be committed (already part of the blob's content) or uncommitted (uploaded with PutBlock, but not yet included in a PutBlockList call). Once this call is made, any block not in the block list is permanently deleted.
The following table describes the parameters:
Parameter | Description |
---|---|
|
The name of the container the blob is in. |
|
The blob to commit the block list for. |
|
The list of blocks to form the blob's content with. |
|
Optional list of properties to specify on the blob. |
|
Optional list of metadata to specify on the blob. |
|
The lease ID, required if the blob is locked. |
|
The optional MD5 hash of the content being sent, for verifying integrity. |
|
The optional class for storing response info into. |
The method returns True if the operation was successful, and False otherwise.