SaveChangeContext.RecordConstraintConflictForItem Method
Include Protected Members
Include Inherited Members
Reports that a constraint conflict occurred when the destination provider tried to apply the change to the destination replica.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
Overload List
Name | Description | |
---|---|---|
RecordConstraintConflictForItem(ConstraintConflictReason) | Reports that a constraint conflict occurred when the destination provider tried to apply the change to the destination replica. | |
RecordConstraintConflictForItem(SyncId, ConstraintConflictReason) | Reports that a constraint conflict occurred when the destination provider tried to apply the change to the destination replica, and specifies the item ID of the destination item that is in conflict. |
Top
Remarks
A constraint conflict occurs when a destination provider tries to apply a change to the destination replica, and the change violates a constraint of the destination replica, such as the relationship of folders or the location of identically named data within a file system.
When the destination provider uses this method to report a constraint conflict, the change applier resolves the conflict according to either the conflict resolution policy set for the session, or the conflict resolution action set by the application for the specified conflict. The change applier then dispatches any necessary calls to the destination provider so that the destination provider can apply the resolved conflict to the destination replica. For more information, see Detecting and Resolving Constraint Conflicts.