Udostępnij za pośrednictwem


ConflictResolutionPolicy Class

Definition

The conflict resolution policy for the container.

public class ConflictResolutionPolicy : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.CosmosDB.Models.ConflictResolutionPolicy>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.CosmosDB.Models.ConflictResolutionPolicy>
type ConflictResolutionPolicy = class
    interface IJsonModel<ConflictResolutionPolicy>
    interface IPersistableModel<ConflictResolutionPolicy>
Public Class ConflictResolutionPolicy
Implements IJsonModel(Of ConflictResolutionPolicy), IPersistableModel(Of ConflictResolutionPolicy)
Inheritance
ConflictResolutionPolicy
Implements

Constructors

ConflictResolutionPolicy()

Initializes a new instance of ConflictResolutionPolicy.

Properties

ConflictResolutionPath

The conflict resolution path in the case of LastWriterWins mode.

ConflictResolutionProcedure

The procedure to resolve conflicts in the case of custom mode.

Mode

Indicates the conflict resolution mode.

Explicit Interface Implementations

IJsonModel<ConflictResolutionPolicy>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ConflictResolutionPolicy>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ConflictResolutionPolicy>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ConflictResolutionPolicy>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ConflictResolutionPolicy>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to