Class ConflictProperties
Represents a conflict in the Azure Cosmos DB service.
public class ConflictProperties
- Inheritance
-
ConflictProperties
- Inherited Members
- Extension Methods
Remarks
On rare occasions, during an async operation (insert, replace and delete), a version conflict may occur on a resource during fail over or multi master scenarios.
The conflicting resource is persisted as a Conflict resource.
Inspecting Conflict resources will allow you to determine which operations and resources resulted in conflicts.
This is not related to operations returning a Conflict status code.
Constructors
ConflictProperties()
public ConflictProperties()
Properties
Id
Gets the Id of the resource in the Azure Cosmos DB service.
public string Id { get; }
Property Value
- string
The Id associated with the resource.
Remarks
Every resource within an Azure Cosmos DB database account needs to have a unique identifier.
The following characters are restricted and cannot be used in the Id property: '/', '\\', '?', '#'
OperationKind
Gets the operation that resulted in the conflict in the Azure Cosmos DB service.
public OperationKind OperationKind { get; }
Property Value
SelfLink
Gets the self-link associated with the resource from the Azure Cosmos DB service.
public string SelfLink { get; }
Property Value
- string
The self-link associated with the resource.
Remarks
A self-link is a static addressable Uri for each resource within a database account and follows the Azure Cosmos DB resource model. E.g. a self-link for a document could be dbs/db_resourceid/colls/coll_resourceid/documents/doc_resourceid