ContainerBuilder.CreateIfNotExistsAsync 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
CreateIfNotExistsAsync(ThroughputProperties, CancellationToken) |
Creates a container if it does not exist with the current fluent definition. |
CreateIfNotExistsAsync(Nullable<Int32>, CancellationToken) |
Creates a container if it does not exist with the current fluent definition. |
CreateIfNotExistsAsync(ThroughputProperties, CancellationToken)
- Source:
- ContainerBuilder.cs
Creates a container if it does not exist with the current fluent definition.
public System.Threading.Tasks.Task<Microsoft.Azure.Cosmos.ContainerResponse> CreateIfNotExistsAsync (Microsoft.Azure.Cosmos.ThroughputProperties throughputProperties, System.Threading.CancellationToken cancellationToken = default);
member this.CreateIfNotExistsAsync : Microsoft.Azure.Cosmos.ThroughputProperties * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Cosmos.ContainerResponse>
Public Function CreateIfNotExistsAsync (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
CreateIfNotExistsAsync(Nullable<Int32>, CancellationToken)
- Source:
- ContainerBuilder.cs
Creates a container if it does not exist with the current fluent definition.
public System.Threading.Tasks.Task<Microsoft.Azure.Cosmos.ContainerResponse> CreateIfNotExistsAsync (int? throughput = default, System.Threading.CancellationToken cancellationToken = default);
member this.CreateIfNotExistsAsync : Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Cosmos.ContainerResponse>
Public Function CreateIfNotExistsAsync (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.
Applies to
Azure SDK for .NET