Data.Cloud.AzureAPI.TAzureBlobService.PutPageBlob
Delphi
function PutPageBlob(ContainerName, BlobName: string; MaximumSize: int64; OptionalHeaders: TStrings = nil; Metadata: TStrings = nil; BlobSequenceNumber: int64 = 0; ResponseInfo: TCloudResponseInfo = nil): Boolean; overload; deprecated 'Use overloaded method instead';
function PutPageBlob(AContainerName, ABlobName, ALeaseID: string; AMaximumSize, ABlobSequenceNumber: Int64; const AOptionalHeaders, AMetadata: array of TPair<string, string>; const AResponseInfo: TCloudResponseInfo): Boolean; overload;
C++
bool __fastcall PutPageBlob _DEPRECATED_ATTRIBUTE1("Use overloaded method instead") (System::UnicodeString ContainerName, System::UnicodeString BlobName, __int64 MaximumSize, System::Classes::TStrings* OptionalHeaders = (System::Classes::TStrings*)(0x0), System::Classes::TStrings* Metadata = (System::Classes::TStrings*)(0x0), __int64 BlobSequenceNumber = 0LL, Data::Cloud::Cloudapi::TCloudResponseInfo* ResponseInfo = (Data::Cloud::Cloudapi::TCloudResponseInfo*)(0x0))/* overload */;
bool __fastcall PutPageBlob(System::UnicodeString AContainerName, System::UnicodeString ABlobName, System::UnicodeString ALeaseID, __int64 AMaximumSize, __int64 ABlobSequenceNumber, const System::Generics::Collections::TPair__2<System::UnicodeString,System::UnicodeString> *AOptionalHeaders, const int AOptionalHeaders_High, const 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
Creates a new block blob or updates one that exists in the given container.
PutPageBlob is used to create a block blob or to replace one that exists in the given container with no content, but specifying the maximum content length.
The following table describes the parameters:
Parameter | Description |
---|---|
|
The name of the container the blob should be created in. |
|
The name of the blob. |
|
The maximum content length of the blob. |
|
The optional lease ID. |
|
The optional headers. |
|
The metadata to set onto the blob. |
|
The optional class for storing response info into. |
Page blobs do not have content until you add pages with a PutPage request. For more information on the Header
and Metadata
parameters, see the documentation for PutBlockBlob. The maximum supported length is 1TB. Each page must be aligned to a 512-byte boundary.
The method returns True if the operation is successful, and False otherwise.