ICloudBlob.DeleteIfExists Methode

Definition

Löscht das Blob, wenn es bereits vorhanden ist.

public bool DeleteIfExists (Microsoft.Azure.Storage.Blob.DeleteSnapshotsOption deleteSnapshotsOption = Microsoft.Azure.Storage.Blob.DeleteSnapshotsOption.None, Microsoft.Azure.Storage.AccessCondition accessCondition = default, Microsoft.Azure.Storage.Blob.BlobRequestOptions options = default, Microsoft.Azure.Storage.OperationContext operationContext = default);
abstract member DeleteIfExists : Microsoft.Azure.Storage.Blob.DeleteSnapshotsOption * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> bool
Public Function DeleteIfExists (Optional deleteSnapshotsOption As DeleteSnapshotsOption = Microsoft.Azure.Storage.Blob.DeleteSnapshotsOption.None, Optional accessCondition As AccessCondition = Nothing, Optional options As BlobRequestOptions = Nothing, Optional operationContext As OperationContext = Nothing) As Boolean

Parameter

deleteSnapshotsOption
DeleteSnapshotsOption

Ein DeleteSnapshotsOption -Objekt, das angibt, ob nur das Blob gelöscht werden soll, ob das Blob und alle Momentaufnahmen gelöscht werden sollen oder ob nur die Momentaufnahmen gelöscht werden sollen.

accessCondition
AccessCondition

Ein AccessCondition-Objekt, das die Bedingung darstellt, die erfüllt werden muss, damit die Anforderung fortgesetzt werden kann.

options
BlobRequestOptions

Ein BlobRequestOptions-Objekt, das zusätzliche Optionen für die Anforderung angibt. Wenn null, werden standardoptionen auf die Anforderung angewendet.

operationContext
OperationContext

Ein OperationContext-Objekt, das den Kontext für den aktuellen Vorgang darstellt.

Gibt zurück

true , wenn das Blob noch nicht vorhanden und erstellt wurde; andernfalls false.

Gilt für: