Data.Cloud.AzureAPI.TAzureBlobService.CreateContainer

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

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 */;

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
function public
Data.Cloud.AzureAPI.pas
Data.Cloud.AzureAPI.hpp
Data.Cloud.AzureAPI TAzureBlobService


Beschreibung

Erstellt einen neuen Container mit dem angegebenen Namen.

Mit CreateContainer wird ein neuer Container mit dem angegebenen Namen erstellt.

Die folgende Tabelle beschreibt die Parameter:

Parameter Beschreibung

ContainerName

Der Name des zu erstellenden Containers.

MetaData

Die optionale Metadaten, die dem Container zugeordnet werden sollen.

PublicAccess

Die öffentliche Zugriffseinstellung, die für den Container verwendet werden soll.

ResponseInfo

Die optionale Klasse zum Speichern der Antwortinformationen.


Wenn ein Container mit demselben Namen bereits vorhanden ist oder wenn die Namensanforderungen nicht erfüllt werden, schlägt die Operation fehl.

Die Methode gibt True zurück, wenn das Erstellen erfolgreich war, ansonsten False.


Siehe auch