ConflictResolutionPolicy.ConflictResolutionPath Property

Definition

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

[Newtonsoft.Json.JsonProperty(PropertyName="conflictResolutionPath")]
public string ConflictResolutionPath { get; set; }
[<Newtonsoft.Json.JsonProperty(PropertyName="conflictResolutionPath")>]
member this.ConflictResolutionPath : string with get, set
Public Property ConflictResolutionPath As String

Property Value

The path to check values for last-writer wins conflict resolution. That path is a rooted path of the property in the document, such as "/name/first".

Attributes
Newtonsoft.Json.JsonPropertyAttribute

Examples

conflictResolutionPolicy.ConflictResolutionPath = "/name/first";

Remarks

This value should only be set when using LastWriterWins

Applies to