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
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기