C#
C++
F#
VB
CloudFile.::..DeleteIfExistsAsync Method (AccessCondition, FileRequestOptions, OperationContext)(AccessCondition^, FileRequestOptions^, OperationContext^)(AccessCondition, FileRequestOptions, OperationContext)(AccessCondition, FileRequestOptions, OperationContext)
Returns a task that performs an asynchronous request to delete the file if it already exists.
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Syntax
[DoesServiceRequestAttribute] public virtual Task<bool> DeleteIfExistsAsync( AccessCondition accessCondition, FileRequestOptions options, OperationContext operationContext )
C++
public: [DoesServiceRequestAttribute] virtual Task<bool>^ DeleteIfExistsAsync( AccessCondition^ accessCondition, FileRequestOptions^ options, OperationContext^ operationContext )
[<DoesServiceRequestAttribute>] abstract DeleteIfExistsAsync : accessCondition:AccessCondition * options:FileRequestOptions * operationContext:OperationContext -> Task<bool> [<DoesServiceRequestAttribute>] override DeleteIfExistsAsync : accessCondition:AccessCondition * options:FileRequestOptions * operationContext:OperationContext -> Task<bool>
<DoesServiceRequestAttribute> Public Overridable Function DeleteIfExistsAsync ( accessCondition As AccessCondition, options As FileRequestOptions, operationContext As OperationContext ) As Task(Of Boolean)
Parameters
- accessCondition
-
Type:
Microsoft.WindowsAzure.Storage.AccessConditionMicrosoft.WindowsAzure.Storage::AccessCondition^Microsoft.WindowsAzure.Storage.AccessConditionMicrosoft.WindowsAzure.Storage.AccessCondition
An AccessCondition object that represents the access conditions for the file. If null, no condition is used.
- options
-
Type:
Microsoft.WindowsAzure.Storage.File.FileRequestOptionsMicrosoft.WindowsAzure.Storage.File::FileRequestOptions^Microsoft.WindowsAzure.Storage.File.FileRequestOptionsMicrosoft.WindowsAzure.Storage.File.FileRequestOptions
A FileRequestOptions object that specifies additional options for the request.
- operationContext
-
Type:
Microsoft.WindowsAzure.Storage.OperationContextMicrosoft.WindowsAzure.Storage::OperationContext^Microsoft.WindowsAzure.Storage.OperationContextMicrosoft.WindowsAzure.Storage.OperationContext
An OperationContext object that represents the context for the current operation.
Return Value
Type: System.Threading.Tasks.Task<Boolean>System.Threading.Tasks::Task<Boolean>^System.Threading.Tasks.Task<Boolean>System.Threading.Tasks.Task(Of Boolean)A Task<TResult><TResult><'TResult>(Of TResult) object that represents the current operation.