ItemConflictingEventArgs::SetResolutionAction Method (ConflictResolutionAction)

Sets the conflict resolution action.

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

public:
virtual void SetResolutionAction(
	ConflictResolutionAction resolutionAction
)

Parameters

resolutionAction
Type: Microsoft.Synchronization::ConflictResolutionAction
The conflict resolution action.

ExceptionCondition
ArgumentOutOfRangeException

resolutionAction is not a valid value.

SyncInvalidOperationException

The source change has no ChangeUnitChange objects.

By setting this action, the ItemConflicting event handler specifies how the change applier should handle the conflict.

When SourceWins is specified for a delete (destination)-update (source) conflict on an item that has change units, the NotifyingChangeApplier object converts the action to SkipChange to avoid restoring a partial item.

When SaveConflict is specified for an update (destination)-delete (source) conflict on an item and the source replica has cleaned up the tombstone for the item, the NotifyingChangeApplier object converts the action to SkipChange to avoid storing a conflict that does not have a version for the change.

Show: