편집

다음을 통해 공유


IDocumentDatabase.DeleteTableAsync Method

Definition

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