CosmosClientBuilder.WithReadConsistencyStrategy 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 Microsoft.Azure.Documents.ReadConsistencyStrategy to be used for read operations.
public Microsoft.Azure.Cosmos.Fluent.CosmosClientBuilder WithReadConsistencyStrategy(Microsoft.Azure.Cosmos.ReadConsistencyStrategy readConsistencyStrategy);
member this.WithReadConsistencyStrategy : Microsoft.Azure.Cosmos.ReadConsistencyStrategy -> Microsoft.Azure.Cosmos.Fluent.CosmosClientBuilder
Public Function WithReadConsistencyStrategy (readConsistencyStrategy As ReadConsistencyStrategy) As CosmosClientBuilder
Parameters
- readConsistencyStrategy
- ReadConsistencyStrategy
The desired read consistency strategy for the client.
Returns
The current CosmosClientBuilder.
Remarks
When set, this takes precedence over the consistency level set via WithConsistencyLevel(ConsistencyLevel). If also set at request level, the request-level value is used.