你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ConflictResolutionPolicy.ConflictResolutionPath 属性

定义

获取或设置 Azure Cosmos DB 服务中每个文档中存在的路径,以便最后一个编写器赢得冲突解决。 此路径必须存在于每个文档中,并且必须是整数值。 如果文档发生冲突,将选取指定路径中整数值较高的文档。 如果路径未指定,则默认使用路径 Timestamp

[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

属性值

最后一个编写器检查值的路径将赢得冲突解决。 该路径是文档中属性的根路径,例如“/name/first”。

属性
Newtonsoft.Json.JsonPropertyAttribute

示例

conflictResolutionPolicy.ConflictResolutionPath = “/name/first”;

注解

仅当使用时,才应设置此值 LastWriterWins

适用于