CloudBlob.DeleteIfExists メソッド

定義

BLOB (存在する場合) を削除します。

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual 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);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member DeleteIfExists : Microsoft.Azure.Storage.Blob.DeleteSnapshotsOption * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> bool
override this.DeleteIfExists : Microsoft.Azure.Storage.Blob.DeleteSnapshotsOption * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> bool
Public Overridable 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

パラメーター

deleteSnapshotsOption
DeleteSnapshotsOption

DeleteSnapshotsOption BLOB のみを削除するか、BLOB とすべてのスナップショットを削除するか、スナップショットのみを削除するかを示す オブジェクト。

accessCondition
AccessCondition

要求を実行するために満たす必要のある条件を表す AccessCondition オブジェクトです。 null の場合、条件は使用されません。

options
BlobRequestOptions

要求の追加オプションを指定する BlobRequestOptions オブジェクトです。 の場合 null、既定のオプションが要求に適用されます。

operationContext
OperationContext

現在の操作のコンテキストを表す OperationContext オブジェクトです。

戻り値

BLOB が既に存在していて削除された場合は true、それ以外の場合は false です。

属性

適用対象