BlobBaseClient.CreateSnapshot Methode

Definition

Der CreateSnapshot(IDictionary<String,String>, BlobRequestConditions, CancellationToken)-Vorgang erstellt eine schreibgeschützte Momentaufnahme eines BLOB.

Weitere Informationen finden Sie unter Momentaufnahmeblob.

public virtual Azure.Response<Azure.Storage.Blobs.Models.BlobSnapshotInfo> CreateSnapshot (System.Collections.Generic.IDictionary<string,string> metadata = default, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateSnapshot : System.Collections.Generic.IDictionary<string, string> * Azure.Storage.Blobs.Models.BlobRequestConditions * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Blobs.Models.BlobSnapshotInfo>
override this.CreateSnapshot : System.Collections.Generic.IDictionary<string, string> * Azure.Storage.Blobs.Models.BlobRequestConditions * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Blobs.Models.BlobSnapshotInfo>
Public Overridable Function CreateSnapshot (Optional metadata As IDictionary(Of String, String) = Nothing, Optional conditions As BlobRequestConditions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of BlobSnapshotInfo)

Parameter

metadata
IDictionary<String,String>

Optionale benutzerdefinierte Metadaten, die für dieses Blob Momentaufnahme festgelegt werden sollen.

conditions
BlobRequestConditions

Optional BlobRequestConditions zum Hinzufügen von Bedingungen beim Festlegen dieses Momentaufnahme.

cancellationToken
CancellationToken

Optional CancellationToken zur Weitergabe von Benachrichtigungen, dass der Vorgang abgebrochen werden soll.

Gibt zurück

EinResponse<T>, der die neue Blob-Momentaufnahme beschreibt.

Hinweise

Ein RequestFailedException wird ausgelöst, wenn ein Fehler auftritt.

Gilt für: