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
- 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.