ConsistencyPolicy Constructors
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.
Overloads
ConsistencyPolicy() |
Initializes a new instance of the ConsistencyPolicy class. |
ConsistencyPolicy(DefaultConsistencyLevel, Nullable<Int64>, Nullable<Int32>) |
Initializes a new instance of the ConsistencyPolicy class. |
ConsistencyPolicy()
Initializes a new instance of the ConsistencyPolicy class.
public ConsistencyPolicy ();
Public Sub New ()
Applies to
ConsistencyPolicy(DefaultConsistencyLevel, Nullable<Int64>, Nullable<Int32>)
Initializes a new instance of the ConsistencyPolicy class.
public ConsistencyPolicy (Microsoft.Azure.Management.CosmosDB.Fluent.Models.DefaultConsistencyLevel defaultConsistencyLevel, long? maxStalenessPrefix = default, int? maxIntervalInSeconds = default);
new Microsoft.Azure.Management.CosmosDB.Fluent.Models.ConsistencyPolicy : Microsoft.Azure.Management.CosmosDB.Fluent.Models.DefaultConsistencyLevel * Nullable<int64> * Nullable<int> -> Microsoft.Azure.Management.CosmosDB.Fluent.Models.ConsistencyPolicy
Public Sub New (defaultConsistencyLevel As DefaultConsistencyLevel, Optional maxStalenessPrefix As Nullable(Of Long) = Nothing, Optional maxIntervalInSeconds As Nullable(Of Integer) = Nothing)
Parameters
- defaultConsistencyLevel
- DefaultConsistencyLevel
The default consistency level and configuration settings of the Cosmos DB account. Possible values include: 'Eventual', 'Session', 'BoundedStaleness', 'Strong', 'ConsistentPrefix'
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'.
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'.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應