Table of Contents

Class ConsistencyPolicy

Namespace
Microsoft.Azure.Documents
Assembly
Microsoft.Azure.Documents.Client.dll

Represents the consistency policy of a database account of the Azure Cosmos DB service.

public sealed class ConsistencyPolicy : JsonSerializable
Inheritance
ConsistencyPolicy
Inherited Members
Extension Methods

Constructors

ConsistencyPolicy()

Default constructor for ConsistencyPolicy class in the Azure Cosmos DB service.

public ConsistencyPolicy()

Properties

DefaultConsistencyLevel

Get or set the default consistency level in the Azure Cosmos DB service.

public ConsistencyLevel DefaultConsistencyLevel { get; set; }

Property Value

ConsistencyLevel

MaxStalenessIntervalInSeconds

For bounded staleness consistency, the maximum allowed staleness in terms time interval in the Azure Cosmos DB service.

public int MaxStalenessIntervalInSeconds { get; set; }

Property Value

int

MaxStalenessPrefix

For bounded staleness consistency, the maximum allowed staleness in terms difference in sequence numbers (aka version) in the Azure Cosmos DB service.

public int MaxStalenessPrefix { get; set; }

Property Value

int