다음을 통해 공유


ConflictResolutionPolicy.ResolutionProcedure Property

Definition

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.

[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

Property Value

The stored procedure to perform conflict resolution.

Attributes
Newtonsoft.Json.JsonPropertyAttribute

Examples

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

Remarks

1. This value should only be set when using Custom 2. In case the stored procedure fails or throws an exception, the conflict resolution will default to registering conflicts in the conflicts feed"/>. 3. The user can provide the stored procedure id.

Applies to