CollisionConflictResolutionPolicy Enumeration

Represents the options for the collision conflict resolution policy to use for the synchronization session.

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

public enum CollisionConflictResolutionPolicy

Member nameDescription
ApplicationDefinedThe change applier notifies the synchronization application of each collision conflict as it occurs, by using the ItemConstraint event. The application examines the conflicting items and specifies the conflict resolution action by calling SetResolutionAction.
DestinationWinsThe change made on the destination replica always wins. Sync Framework specifies a conflict resolution action of DestinationWins.
SourceWinsThe change made on the source replica always wins. Sync Framework specifies a conflict resolution action of SourceWins.
MergeThe data from the source item is combined with the destination item. Sync Framework specifies a conflict resolution action of Merge.
RenameSourceThe change sent from the source provider is renamed so that it no longer collides with the conflicting item on the destination replica, and the source change is applied to the destination replica. Sync Framework specifies a conflict resolution action of RenameSource.
RenameDestinationThe conflicting item on the destination replica is renamed so that it no longer collides with the change sent from the source provider, and the source change is applied to the destination replica. Sync Framework specifies a conflict resolution action of RenameDestination.

The members of CollisionConflictResolutionPolicy are used by a synchronization application to specify the policy that the change applier uses to resolve collision constraint conflicts that occur during synchronization. A collision conflict occurs when an item cannot be saved because it conflicts with another item in the destination store, such as when the source provider sends a file that has the same name and location as a file that already exists in the destination replica.

For more information, see Detecting and Resolving Constraint Conflicts.

Show: