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

ConflictResolutionPolicy.ResolutionProcedure 属性

定义

获取或设置 StoredProcedureProperties 用于在 Azure Cosmos DB 服务中解决冲突的 。 此存储过程可以在创建 后创建, Container 并且可以根据需要进行更改。

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

属性值

用于执行冲突解决的存储过程。

属性
Newtonsoft.Json.JsonPropertyAttribute

示例

conflictResolutionPolicy.ConflictResolutionProcedure = “dbs/databaseName/colls/containerName/sprocs/storedProcedureName”;

注解

1.仅当使用 Custom 2 时,才应设置此值。 如果存储过程失败或引发异常,则冲突解决将默认为在冲突源中注册冲突”。> 3. 用户可以提供存储过程 ID。

适用于