CosmosClientBuilder.WithThroughputBucket(Int32) 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.
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.