ConflictResolutionPolicy Class

Definition

Represents the conflict resolution policy configuration for specifying how to resolve conflicts in case writes from different regions result in conflicts on items in the container in the Azure Cosmos DB service.

[System.Text.Json.Serialization.JsonConverter(typeof(Azure.Cosmos.TextJsonConflictResolutionPolicyConverter))]
public class ConflictResolutionPolicy
[<System.Text.Json.Serialization.JsonConverter(typeof(Azure.Cosmos.TextJsonConflictResolutionPolicyConverter))>]
type ConflictResolutionPolicy = class
Public Class ConflictResolutionPolicy
Inheritance
ConflictResolutionPolicy
Attributes

Constructors

ConflictResolutionPolicy()

Initializes a new instance of the ConflictResolutionPolicy class for the Azure Cosmos DB service.

Properties

Mode

Gets or sets the ConflictResolutionMode in the Azure Cosmos DB service. By default it is LastWriterWins.

ResolutionPath

Gets or sets the path which is present in each item in the Azure Cosmos DB service for last writer wins conflict-resolution. This path must be present in each item and must be an integer value. In case of a conflict occurring on a item, the item with the higher integer value in the specified path will be picked. If the path is unspecified, by default the time stamp path will be used.

ResolutionProcedure

Gets or sets the Stored Procedure which is used for conflict resolution in the Azure Cosmos DB service. This stored procedure may be created after the CosmosContainer is created and can be changed as required.

Applies to