ConsistencyPolicy Class
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.
The consistency policy for the Cosmos DB database account.
public class ConsistencyPolicy
type ConsistencyPolicy = class
Public Class ConsistencyPolicy
- Inheritance
-
ConsistencyPolicy
Constructors
ConsistencyPolicy() |
Initializes a new instance of the ConsistencyPolicy class. |
ConsistencyPolicy(DefaultConsistencyLevel, Nullable<Int64>, Nullable<Int32>) |
Initializes a new instance of the ConsistencyPolicy class. |
Properties
DefaultConsistencyLevel |
Gets or sets the default consistency level and configuration settings of the Cosmos DB account. Possible values include: 'Eventual', 'Session', 'BoundedStaleness', 'Strong', 'ConsistentPrefix' |
MaxIntervalInSeconds |
Gets or sets when used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated. Accepted range for this value is 5 - 86400. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'. |
MaxStalenessPrefix |
Gets or sets when used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. Accepted range for this value is 1 – 2,147,483,647. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'. |
Methods
Validate() |
Validate the object. |
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應