IConstraintConflict Interface

SQL Server 2008 R2

Represents a constraint conflict between two items.


interface IConstraintConflict : IUnknown

IConstraintConflict method Description

IConstraintConflict::GetDestinationProviderConflictingChange

Gets the change metadata from the destination provider.

IConstraintConflict::GetSourceProviderConflictingChange

Gets the change metadata from the source provider.

IConstraintConflict::GetDestinationProviderOriginalChange

Gets the change metadata from the destination provider for the item that originally caused the conflict.

IConstraintConflict::GetDestinationProviderConflictingData

Gets an object that can be used to retrieve item data for the change item from the destination replica.

IConstraintConflict::GetSourceProviderConflictingData

Gets an object that can be used to retrieve item data for the change item from the source replica.

IConstraintConflict::GetDestinationProviderOriginalData

Gets an object that can be use to retrieve item data for the item in the destination replica that originally caused the conflict.

IConstraintConflict::GetConstraintResolveActionForChange

Gets the conflict resolution action for the conflict.

IConstraintConflict::SetConstraintResolveActionForChange

Sets a conflict resolution action for the conflict.

IConstraintConflict::GetConstraintResolveActionForChangeUnit

Gets the conflict resolution action for the conflicting change unit change.

IConstraintConflict::SetConstraintResolveActionForChangeUnit

Sets a conflict resolution action for the conflicting change unit change.

IConstraintConflict::GetConstraintConflictReason

Gets the reason that the conflict occurred.

IConstraintConflict::IsTemporary

Indicates whether the conflict is temporary.

When the application specifies CCRP_NONE as the collision conflict resolution policy, the change applier sends an IConstraintConflict object to the ISyncConstraintCallback::OnConstraintConflict method one time for each collision constraint conflict that is reported during synchronization.

Because a conflict resolution policy cannot be specified for non-collision constraint conflicts, the change applier also calls the OnConstraintConflict method one time for each non-collision constraint conflict that is reported.

For more information, see Detecting and Resolving Constraint Conflicts.

Header: Synchronization.h

Show: