IDocumentClient.CreateDatabaseAsync Method

Definition

Creates a database resource as an asychronous operation in the Azure DocumentDB database service.

public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.Database>> CreateDatabaseAsync (Microsoft.Azure.Documents.Database database, Microsoft.Azure.Documents.Client.RequestOptions options = null);
Parameters
database
Database

The specification for the Database to create.

options
RequestOptions

(Optional) The RequestOptions for the request.

Returns

The Database that was created within a task object representing the service response for the asynchronous operation.