Class Conflict
This is the conflicting resource resulting from a concurrent async operation in the Azure Cosmos DB service.
public class Conflict : Resource
- Inheritance
-
Conflict
- Inherited Members
- Extension Methods
Remarks
On rare occasions, during an async operation (insert, replace and delete), a version conflict may occur on a resource.
The conflicting resource is persisted as a Conflict resource.
Inspecting Conflict resources will allow you to determine which operations and resources resulted in conflicts.
Constructors
Conflict()
Initialize a new instance of a Conflict class in the Azure Cosmos DB service.
public Conflict()
Properties
OperationKind
Gets the operation that resulted in the conflict in the Azure Cosmos DB service.
public OperationKind OperationKind { get; }
Property Value
- OperationKind
One of the values of the OperationKind enumeration.
ResourceType
Gets the type of the conflicting resource in the Azure Cosmos DB service.
public Type ResourceType { get; }
Property Value
- Type
The type of the resource.
SourceResourceId
Gets the resource ID for the conflict in the Azure Cosmos DB service.
public string SourceResourceId { get; }
Property Value
Methods
GetResource<T>()
Gets the conflicting resource in the Azure Cosmos DB service.
public T GetResource<T>() where T : Resource, new()
Returns
- T
The conflicting resource.
Type Parameters
T
The returned type of conflicting resource.