Data.Cloud.AzureAPI.TAzureBlockListItem

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TAzureBlockListItem = record

C++

struct DECLSPEC_DRECORD TAzureBlockListItem
{
public:
    System::UnicodeString BlockId;
    System::UnicodeString Size;
    TAzureBlockType BlockType;
    static TAzureBlockListItem __fastcall Create(System::UnicodeString ABlockId, TAzureBlockType ABlockType, System::UnicodeString ASize = L"0");
    System::UnicodeString __fastcall AsXML();
};

Properties

Type Visibility Source Unit Parent
record
struct
public
Data.Cloud.AzureAPI.pas
Data.Cloud.AzureAPI.hpp
Data.Cloud.AzureAPI Data.Cloud.AzureAPI

Description

A block item in a block blob.

TAzureBlockListItem is a record that specifies a block item in a block blob.

The fields of the TAzureBlockListItem record are listed in the following table. Note that Size can be left out if this item is being used in a PutBlockList operation. It will be populated when calling GetBlockList.

Field Meaning

BlockId

Specifies the base 64-encoded unique ID of the block.

Size

Specifies the size of the block data in bytes. You can ignore this value when doing utBlockList requests.

BlockType

Specifies the block type.

When populated from a GetBlockList call, the available types are abtCommitted and abtUncommitted. When calling PutBlockList, abtLatest is also supported. A given ID can have up to two blocks associated with it, where one block is in the committed list, and the other is in the uncommitted list.

Create

Creates a new instance of TAzureBlockListItem with the given values. The ABlockId parameter specifies the blob ID to set. The ABlockType parameter specifies the block type to set and the ASize parameter specifies the size to set. Create returns the new instance of TAzureBlockListItem.

AsXML

Returns the XML in a format as required by the PutBlockList action.

See Also