共用方式為


ContainerBuilder.CreateAsync Method

Definition

Overloads

CreateAsync(ThroughputProperties, CancellationToken)

Creates a container with the current fluent definition.

CreateAsync(Nullable<Int32>, CancellationToken)

Creates a container with the current fluent definition.

CreateAsync(ThroughputProperties, CancellationToken)

Source:
ContainerBuilder.cs

Creates a container with the current fluent definition.

public System.Threading.Tasks.Task<Microsoft.Azure.Cosmos.ContainerResponse> CreateAsync (Microsoft.Azure.Cosmos.ThroughputProperties throughputProperties, System.Threading.CancellationToken cancellationToken = default);
member this.CreateAsync : Microsoft.Azure.Cosmos.ThroughputProperties * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Cosmos.ContainerResponse>
Public Function CreateAsync (throughputProperties As ThroughputProperties, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ContainerResponse)

Parameters

throughputProperties
ThroughputProperties

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

cancellationToken
CancellationToken

(Optional) CancellationToken representing request cancellation.

Returns

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

Applies to

CreateAsync(Nullable<Int32>, CancellationToken)

Source:
ContainerBuilder.cs

Creates a container with the current fluent definition.

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

Parameters

throughput
Nullable<Int32>

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

cancellationToken
CancellationToken

(Optional) CancellationToken representing request cancellation.

Returns

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

Applies to