Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the conflict resolution action.
Namespace: Microsoft.Synchronization
Assembly: Microsoft.Synchronization (in Microsoft.Synchronization.dll)
Syntax
'Declaration
Public Overridable Sub SetResolutionAction ( _
resolutionAction As ConflictResolutionAction _
)
'Usage
Dim instance As ItemConflictingEventArgs
Dim resolutionAction As ConflictResolutionAction
instance.SetResolutionAction(resolutionAction)
public virtual void SetResolutionAction(
ConflictResolutionAction resolutionAction
)
public:
virtual void SetResolutionAction(
ConflictResolutionAction resolutionAction
)
abstract SetResolutionAction :
resolutionAction:ConflictResolutionAction -> unit
override SetResolutionAction :
resolutionAction:ConflictResolutionAction -> unit
public function SetResolutionAction(
resolutionAction : ConflictResolutionAction
)
Parameters
- resolutionAction
Type: Microsoft.Synchronization.ConflictResolutionAction
The conflict resolution action.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | resolutionAction is not a valid value. |
| SyncInvalidOperationException | The source change has no ChangeUnitChange objects. |
Remarks
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.