Data.Cloud.AzureAPI.TAzureBlobService.CreateContainer
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 |
---|---|
|
The name of the container to create. |
|
The optional metadata to associate with the container. |
|
The public access setting to use for the container. |
|
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.