Изменить

Поделиться через


IDocumentDatabase.UpdateTableSettingsAsync Method

Definition

Updates the existing table settings.

public:
 System::Threading::Tasks::Task<System::Cloud::DocumentDb::IDatabaseResponse<bool> ^> ^ UpdateTableSettingsAsync(System::Cloud::DocumentDb::TableOptions ^ tableOptions, System::Cloud::DocumentDb::RequestOptions ^ requestOptions, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<System.Cloud.DocumentDb.IDatabaseResponse<bool>> UpdateTableSettingsAsync(System.Cloud.DocumentDb.TableOptions tableOptions, System.Cloud.DocumentDb.RequestOptions requestOptions, System.Threading.CancellationToken cancellationToken);
abstract member UpdateTableSettingsAsync : System.Cloud.DocumentDb.TableOptions * System.Cloud.DocumentDb.RequestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Cloud.DocumentDb.IDatabaseResponse<bool>>
Public Function UpdateTableSettingsAsync (tableOptions As TableOptions, requestOptions As RequestOptions, cancellationToken As CancellationToken) As Task(Of IDatabaseResponse(Of Boolean))

Parameters

tableOptions
TableOptions

The table options with TableName and region information provided.

requestOptions
RequestOptions

The request options.

cancellationToken
CancellationToken

The token represents request cancellation.

Returns

A Task containing a IDatabaseResponse<T> that wraps the asynchronous operation result. The result is true when the throughput replaced successfully. The false indicating the operation is pending.

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

See also