Share via


ContainerBuilder.CreateIfNotExistsAsync(Nullable<Int32>) Method

Definition

Creates a container if it does not exist with the current fluent definition.

public System.Threading.Tasks.Task<Azure.Cosmos.ContainerResponse> CreateIfNotExistsAsync (int? throughput = default);
member this.CreateIfNotExistsAsync : Nullable<int> -> System.Threading.Tasks.Task<Azure.Cosmos.ContainerResponse>
Public Function CreateIfNotExistsAsync (Optional throughput As Nullable(Of Integer) = Nothing) As Task(Of ContainerResponse)

Parameters

throughput
Nullable<Int32>

Desired throughput for the container expressed in Request Units per second.

Returns

An asynchronous Task representing the creation of a CosmosContainer based on the Fluent definition.

Remarks

https://docs.microsoft.com/azure/cosmos-db/request-units for details on provision throughput.

Applies to