Deletes the table if it already exists.
Namespace: Microsoft.WindowsAzure.Storage.Table
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Usage
| Visual Basic |
|---|
Dim instance As CloudTable
Dim requestOptions As TableRequestOptions
Dim operationContext As OperationContext
Dim returnValue As IAsyncOperation(Of Boolean)
returnValue = instance.DeleteIfExistsAsync(requestOptions, operationContext) |
Syntax
| Visual Basic |
|---|
Public Function DeleteIfExistsAsync ( _
requestOptions As TableRequestOptions, _
operationContext As OperationContext _
) As IAsyncOperation(Of Boolean) |
| C# |
|---|
public IAsyncOperation<bool> DeleteIfExistsAsync (
TableRequestOptions requestOptions,
OperationContext operationContext
) |
| C++ |
|---|
public:
IAsyncOperation<bool>^ DeleteIfExistsAsync (
TableRequestOptions^ requestOptions,
OperationContext^ operationContext
) |
| J# |
|---|
public IAsyncOperation<boolean> DeleteIfExistsAsync (
TableRequestOptions requestOptions,
OperationContext operationContext
) |
| JScript |
|---|
public function DeleteIfExistsAsync (
requestOptions : TableRequestOptions,
operationContext : OperationContext
) : IAsyncOperation<boolean> |
Parameters
- requestOptions
A TableRequestOptions object that specifies execution options, such as retry policy and timeout settings, for the operation.
- operationContext
An OperationContext object for tracking the current operation.
Return Value
true if the table already existed and was deleted; otherwise,
false.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
See Also