Data.Cloud.AzureAPI.TAzureBlobService.PutBlockList

From RAD Studio API Documentation
Jump to: navigation, search

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;

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));

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

ContainerName

The name of the container the blob is in.

BlobName

The blob to commit the block list for.

BlockList

The list of blocks to form the blob's content with.

Properties

Optional list of properties to specify on the blob.

Metadata

Optional list of metadata to specify on the blob.

LeaseId

The lease ID, required if the blob is locked.

ContentMD5

The optional MD5 hash of the content being sent, for verifying integrity.

ResponseInfo

The optional class for storing response info into.


The method returns True if the operation was successful, and False otherwise.

See Also