共用方式為


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.

public class ConflictResolutionPolicy
type ConflictResolutionPolicy = class
Public Class ConflictResolutionPolicy
Inheritance
ConflictResolutionPolicy

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 StoredProcedureProperties which is used for conflict resolution in the Azure Cosmos DB service. This stored procedure may be created after the Container is created and can be changed as required.

Applies to