SaveChangeWithChangeUnitsContext::RecordConstraintConflictForItem Method (ConstraintConflictReason)

Reports that a constraint conflict occurred when the destination provider tried to apply the change to the destination replica.

Namespace:  Microsoft.Synchronization
Assembly:  Microsoft.Synchronization (in Microsoft.Synchronization.dll)

public:
void RecordConstraintConflictForItem(
	ConstraintConflictReason reason
)

Parameters

reason
Type: Microsoft.Synchronization::ConstraintConflictReason
The reason the conflict occurred.

ExceptionCondition
ArgumentException

reason is Collision. In this case, a conflicting item ID must be specified by using [M:Microsoft.Synchronization.SaveChangeWithChangeUnitsContext.RecordConstraintConflictForItem(Microsoft.Synchronization.SyncId,Microsoft.Synchronization.ConstraintConflictReason).]

SyncInvalidOperationException

A constraint conflict or recoverable error has already been set on this object.

Show: