Data.Cloud.AzureAPI.TAzureBlobService.CreateRootContainer
Delphi
function CreateRootContainer(MetaData: TStrings = nil; PublicAccess: TBlobPublicAccess = bpaContainer; ResponseInfo: TCloudResponseInfo = nil): Boolean; overload; deprecated 'Use overloaded method instead';
function CreateRootContainer(const AMetaData: array of TPair<string, string>; APublicAccess: TBlobPublicAccess; const AResponseInfo: TCloudResponseInfo): Boolean; overload;
C++
bool __fastcall CreateRootContainer _DEPRECATED_ATTRIBUTE1("Use overloaded method instead") (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 CreateRootContainer(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 the root container.
CreateRootContainer is used to create a root container.
The following table describes the parameters:
Parameter | Description |
---|---|
|
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 the root container already exists, then the operation fails. This method calls CreateContainer, passing $root as the ContainerName
.
The method returns True if the creation was successful, and False otherwise.