次の方法で共有


CosmosClientBuilder.WithThroughputBucket(Int32) Method

Definition

Sets the throughput bucket for requests created using cosmos client.

public Microsoft.Azure.Cosmos.Fluent.CosmosClientBuilder WithThroughputBucket(int throughputBucket);
member this.WithThroughputBucket : int -> Microsoft.Azure.Cosmos.Fluent.CosmosClientBuilder
Public Function WithThroughputBucket (throughputBucket As Integer) As CosmosClientBuilder

Parameters

throughputBucket
Int32

The desired throughput bucket for the client.

Returns

The current CosmosClientBuilder.

Remarks

If throughput bucket is also set at request level in Microsoft.Azure.Documents.Client.RequestOptions.ThroughputBucket, that throughput bucket is used. If WithBulkExecution(Boolean) is set to true, throughput bucket can only be set at client level.

Applies to