IDocumentDatabase.DeleteTableAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Deletes table using provided parameters.
public:
System::Threading::Tasks::Task<System::Cloud::DocumentDb::IDatabaseResponse<System::Cloud::DocumentDb::TableOptions ^> ^> ^ DeleteTableAsync(System::Cloud::DocumentDb::TableOptions ^ tableOptions, System::Cloud::DocumentDb::RequestOptions ^ requestOptions, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<System.Cloud.DocumentDb.IDatabaseResponse<System.Cloud.DocumentDb.TableOptions>> DeleteTableAsync(System.Cloud.DocumentDb.TableOptions tableOptions, System.Cloud.DocumentDb.RequestOptions requestOptions, System.Threading.CancellationToken cancellationToken);
abstract member DeleteTableAsync : System.Cloud.DocumentDb.TableOptions * System.Cloud.DocumentDb.RequestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Cloud.DocumentDb.IDatabaseResponse<System.Cloud.DocumentDb.TableOptions>>
Public Function DeleteTableAsync (tableOptions As TableOptions, requestOptions As RequestOptions, cancellationToken As CancellationToken) As Task(Of IDatabaseResponse(Of TableOptions))
Parameters
- tableOptions
- TableOptions
The table options with TableName and region information provided.
- requestOptions
- RequestOptions
The request options.
- cancellationToken
- CancellationToken
The token that represents request cancellation.
Returns
A Task containing a IDatabaseResponse<T> with
true
value if table successfully deleted and false
otherwise.
Exceptions
An error occurred on the client side, for example, on a bad request, permissions error, or client timeout.
An error occurred on the database server side, including internal server error.
The request failed but can be retried. This includes throttling and when the server is unavailable.
A general failure occurred.
Applies to
.NET