ItemConflictingEventArgs::SetResolutionAction Method (ConflictResolutionAction)
Sets the conflict resolution action.
Assembly: Microsoft.Synchronization (in Microsoft.Synchronization.dll)
| Exception | Condition |
|---|---|
| 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.