次の方法で共有


CosmosClientBuilder.WithReadConsistencyStrategy Method

Definition

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.

Applies to