편집

다음을 통해 공유


IDocumentDatabase.ReadTableSettingsAsync Method

Definition

Reads the provided table settings.

public:
 System::Threading::Tasks::Task<System::Cloud::DocumentDb::IDatabaseResponse<System::Cloud::DocumentDb::TableOptions ^> ^> ^ ReadTableSettingsAsync(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>> ReadTableSettingsAsync(System.Cloud.DocumentDb.TableOptions tableOptions, System.Cloud.DocumentDb.RequestOptions requestOptions, System.Threading.CancellationToken cancellationToken);
abstract member ReadTableSettingsAsync : 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 ReadTableSettingsAsync (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 represents the request cancellation.

Returns

A Task containing a IDatabaseResponse<T> that wraps the table information.

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