ContainerBuilder.CreateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.