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;

C++

bool __fastcall CreateContainer(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));

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