Data.Cloud.AzureAPI.TAzureBlobService.CreateContainer

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function CreateContainer(ContainerName: string;  MetaData: TStrings = nil; PublicAccess: TBlobPublicAccess = bpaContainer; ResponseInfo: TCloudResponseInfo = nil): Boolean; overload; deprecated 'Use overloaded method instead';
function CreateContainer(const AContainerName: string; const AMetaData: array of TPair<string, string>;  APublicAccess: TBlobPublicAccess; const AResponseInfo: TCloudResponseInfo): Boolean; overload;

C++

bool __fastcall CreateContainer _DEPRECATED_ATTRIBUTE1("Use overloaded method instead") (System::UnicodeString ContainerName, System::Classes::TStrings* MetaData = (System::Classes::TStrings*)(0x0), TBlobPublicAccess PublicAccess = (TBlobPublicAccess)(0x1), Data::Cloud::Cloudapi::TCloudResponseInfo* ResponseInfo = (Data::Cloud::Cloudapi::TCloudResponseInfo*)(0x0))/* overload */;
bool __fastcall CreateContainer(const System::UnicodeString AContainerName, const System::Generics::Collections::TPair__2<System::UnicodeString,System::UnicodeString> *AMetaData, const int AMetaData_High, TBlobPublicAccess APublicAccess, 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 container with the given name.

CreateContainer is used to create a new container with the given name.

The following table describes the parameters:

Parameter Description

ContainerName

The name of the container to create.

MetaData

The optional metadata to associate with the container.

PublicAccess

The public access setting to use for the container.

ResponseInfo

The optional class for storing response info into.


If a container with the same name already exists, or if the naming requirements are not followed, then the operation fails.

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


See Also