Data.Cloud.AzureAPI.TAzureBlobService.SnapshotBlob
Delphi
function SnapshotBlob(ContainerName, BlobName: string; out SnapshotId: string; const LeaseId: string = ''; Metadata: TStrings = nil; ResponseInfo: TCloudResponseInfo = nil): Boolean; overload;
function SnapshotBlob(ContainerName, BlobName: string; SnapshotConditionals: TBlobActionConditional; out SnapshotId: string; const LeaseId: string = ''; Metadata: TStrings = nil; ResponseInfo: TCloudResponseInfo = nil): Boolean; overload;
C++
bool __fastcall SnapshotBlob(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(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 */;
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 |
---|---|
|
Der Name des Containers, in dem sich das Blob befindet |
|
Der Name des Blobs, für das ein Snapshot erstellt wird |
|
Die zu erfüllenden Bedingungen, um den Snapshot zu erstellen |
|
Die resultierende Snapshot-ID, wenn der Snapshot erfolgreich erstellt wurde |
|
Die Leasing-ID, die erforderlich ist, wenn das Blob gesperrt ist |
|
Die Metadaten, die für den Snapshot anstatt der Metadaten des Blobs gesetzt werden |
|
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.