Sdílet prostřednictvím


ConsistencyPolicy Class

Definition

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

public sealed class ConsistencyPolicy : Microsoft.Azure.Documents.JsonSerializable
type ConsistencyPolicy = class
    inherit JsonSerializable
Public NotInheritable Class ConsistencyPolicy
Inherits JsonSerializable
Inheritance
ConsistencyPolicy

Constructors

ConsistencyPolicy()

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

Properties

DefaultConsistencyLevel

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

MaxStalenessIntervalInSeconds

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

MaxStalenessPrefix

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

Methods

LoadFrom(JsonReader, JsonSerializerSettings)

Loads the object from the specified JSON reader in the Azure Cosmos DB service.

(Inherited from JsonSerializable)
LoadFrom(JsonReader)

Loads the object from the specified JSON reader in the Azure Cosmos DB service.

(Inherited from JsonSerializable)
SaveTo(Stream, SerializationFormattingPolicy, JsonSerializerSettings)

Saves the object to the specified stream in the Azure Cosmos DB service.

(Inherited from JsonSerializable)
SaveTo(Stream, SerializationFormattingPolicy)

Saves the object to the specified stream in the Azure Cosmos DB service.

(Inherited from JsonSerializable)
ToString()

Returns the string representation of the object in the Azure Cosmos DB service.

(Inherited from JsonSerializable)

Applies to