CloudFile.DeleteIfExists メソッド

定義

ファイル (存在する場合) を削除します。

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual bool DeleteIfExists (Microsoft.Azure.Storage.AccessCondition accessCondition = default, Microsoft.Azure.Storage.File.FileRequestOptions options = default, Microsoft.Azure.Storage.OperationContext operationContext = default);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member DeleteIfExists : Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext -> bool
override this.DeleteIfExists : Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext -> bool
Public Overridable Function DeleteIfExists (Optional accessCondition As AccessCondition = Nothing, Optional options As FileRequestOptions = Nothing, Optional operationContext As OperationContext = Nothing) As Boolean

パラメーター

accessCondition
AccessCondition

ファイルのアクセス条件を表す AccessCondition オブジェクトです。 null の場合、条件は使用されません。

options
FileRequestOptions

要求の追加オプションを指定する FileRequestOptions オブジェクトです。

operationContext
OperationContext

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

戻り値

true ファイルが既に存在し、削除された場合は 。それ以外の場合 falseは 。

属性

適用対象