ISyncConstraintCallback Interface

SQL Server 2008 R2

Represents application callbacks that are used to notify the application of constraint conflict events.

interface ISyncConstraintCallback : IUnknown

ISyncConstraintCallback method Description


Occurs when a constraint conflict is reported, for collision conflicts when the collision conflict resolution policy is set to CCRP_NONE, and for all non-collision constraint conflicts.

The object that implements ISyncConstraintCallback is passed to Sync Framework in the ISyncSession::RegisterCallback method as an ISyncCallback interface. Because of this, the object that implements ISyncCallback must return an ISyncConstraintCallback object when its QueryInterface method receives IID_ISyncConstraintCallback; otherwise, the ISyncConstraintCallback methods will not be called.

Header: Synchronization.h