Data.Cloud.AzureAPI.TAzureBlobService.SnapshotBlob

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

Delphi

function SnapshotBlob(ContainerName, BlobName: string; out SnapshotId: string; const LeaseId: string = '';  Metadata: TStrings = nil; ResponseInfo: TCloudResponseInfo = nil): Boolean; overload; deprecated 'Use overloaded method instead';
function SnapshotBlob(ContainerName, BlobName: string;  SnapshotConditionals: TBlobActionConditional; out SnapshotId: string; const LeaseId: string = ''; Metadata: TStrings = nil; ResponseInfo: TCloudResponseInfo = nil): Boolean; overload; deprecated 'Use overloaded method instead';
function SnapshotBlob(const AContainerName, ABlobName, ALeaseID: string;  ASnapshotConditionals: TBlobActionConditional; AMetadata: array of TPair<string, string>; out ASnapshotId: string; const AResponseInfo: TCloudResponseInfo): Boolean; overload;

C++

bool __fastcall SnapshotBlob _DEPRECATED_ATTRIBUTE1("Use overloaded method instead") (System::UnicodeString ContainerName, System::UnicodeString BlobName, /* out */ System::UnicodeString &SnapshotId, const System::UnicodeString LeaseId = System::UnicodeString(), System::Classes::TStrings* Metadata = (System::Classes::TStrings*)(0x0), Data::Cloud::Cloudapi::TCloudResponseInfo* ResponseInfo = (Data::Cloud::Cloudapi::TCloudResponseInfo*)(0x0))/* overload */;
bool __fastcall SnapshotBlob _DEPRECATED_ATTRIBUTE1("Use overloaded method instead") (System::UnicodeString ContainerName, System::UnicodeString BlobName, const TBlobActionConditional &SnapshotConditionals, /* out */ System::UnicodeString &SnapshotId, const System::UnicodeString LeaseId = System::UnicodeString(), System::Classes::TStrings* Metadata = (System::Classes::TStrings*)(0x0), Data::Cloud::Cloudapi::TCloudResponseInfo* ResponseInfo = (Data::Cloud::Cloudapi::TCloudResponseInfo*)(0x0))/* overload */;
bool __fastcall SnapshotBlob(const System::UnicodeString AContainerName, const System::UnicodeString ABlobName, const System::UnicodeString ALeaseID, const TBlobActionConditional &ASnapshotConditionals, System::Generics::Collections::TPair__2<System::UnicodeString,System::UnicodeString> *AMetadata, const int AMetadata_High, /* out */ System::UnicodeString &ASnapshotId, 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 Snapshot des angegebenen Blobs.

SnapshotBlob erstellt einen neuen Snapshot des angegebenen Blobs.

Es gibt zwei überladene SnapshotBlob-Methoden. Für die zweite überladene Methode wird der Snapshot nur dann erstellt, wenn die in SnapshotConditionals angegebenen Bedingungen erfüllt sind. Nicht alle Bedingungen der Instanz TBlobActionConditional werden verwendet. Beispielweise werden die Bedingungen, deren Feldname mit 'IfSource' beginnen, hier nicht verwendet.


Die folgende Tabelle gibt die Bedeutung der Parameter an:

Parameter Beschreibung

ContainerName

Der Name des Containers, in dem sich das Blob befindet

BlobName

Der Name des Blobs, für das ein Snapshot erstellt wird

SnapshotConditionals

Die zu erfüllenden Bedingungen, um den Snapshot zu erstellen

SnapshotIde

Die resultierende Snapshot-ID, wenn der Snapshot erfolgreich erstellt wurde

LeaseId

Die Leasing-ID, die erforderlich ist, wenn das Blob gesperrt ist

Metadata

Die Metadaten, die für den Snapshot anstatt der Metadaten des Blobs gesetzt werden

ResponseInfo

Die optionale Klasse zum Speichern von Antwortinformationen

Setzen Sie Metadata auf nil oder auf eine leere Liste, außer wenn Sie eigene Metadaten für den Snapshot anstatt der Metadaten des Blobs festlegen möchten, für das der Snapshot erstellt wurde.

Die Methode gibt True zurück, wenn die Operation erfolgreich war, ansonsten False.

Siehe auch