Share via


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CosmosClientBuilder.WithBulkExecution(Boolean) 方法

定义

允许对服务请求进行乐观批处理。 设置此选项可能会影响操作的延迟。 因此,建议仅对非延迟敏感方案使用此选项。

public Microsoft.Azure.Cosmos.Fluent.CosmosClientBuilder WithBulkExecution (bool enabled);
member this.WithBulkExecution : bool -> Microsoft.Azure.Cosmos.Fluent.CosmosClientBuilder
Public Function WithBulkExecution (enabled As Boolean) As CosmosClientBuilder

参数

enabled
Boolean

是否 AllowBulkExecution 启用 。

返回

对象CosmosClientBuilder

适用于

另请参阅