你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ContainerBuilder.CreateAsync(Nullable<Int32>) Method

Definition

Creates a container with the current fluent definition.

public System.Threading.Tasks.Task<Azure.Cosmos.ContainerResponse> CreateAsync(int? throughput = default);
member this.CreateAsync : Nullable<int> -> System.Threading.Tasks.Task<Azure.Cosmos.ContainerResponse>
Public Function CreateAsync (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