次の方法で共有


CosmosContainer.ReplaceContainerStreamAsync メソッド

定義

Azure Cosmos サービスの を ContainerProperties 非同期操作として置き換えます。

public abstract System.Threading.Tasks.Task<Azure.Response> ReplaceContainerStreamAsync (Azure.Cosmos.ContainerProperties containerProperties, Azure.Cosmos.ContainerRequestOptions requestOptions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ReplaceContainerStreamAsync : Azure.Cosmos.ContainerProperties * Azure.Cosmos.ContainerRequestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public MustOverride Function ReplaceContainerStreamAsync (containerProperties As ContainerProperties, Optional requestOptions As ContainerRequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

パラメーター

containerProperties
ContainerProperties

ContainerProperties

requestOptions
ContainerRequestOptions

(省略可能)コンテナー要求のオプション RequestOptions

cancellationToken
CancellationToken

(省略可能) CancellationToken 要求の取り消しを表します。

戻り値

Task置換リソース レコードをResponse含む を含む 。

ContainerProperties containerProperties = containerReadResponse;
containerProperties.IndexingPolicy.Automatic = false;
Response response = await container.ReplaceContainerStreamAsync(containerProperties);

適用対象