Sdílet prostřednictvím


IChangeConflict::SetResolveActionForChange

Sets a conflict resolution action for the conflict.

HRESULT SetResolveActionForChange(
  SYNC_RESOLVE_ACTION resolveAction);

Parameters

  • resolveAction
    [in] The conflict resolution action for the conflict.

Return Value

  • S_OK

  • E_POINTER

  • SYNC_E_INTERNAL_ERROR when no conflict exists.

Remarks

By setting this action in an event handler for ISyncCallback::OnConflict, the event handler specifies how the change applier should handle the conflict.

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

When SRA_TRANSFER_AND_DEFER 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 ISynchronousNotifyingChangeApplier object converts the action to SRA_DEFER to avoid storing a conflict that does not have a version for the change.

See Also

Reference

IChangeConflict Interface
SYNC_RESOLVE_ACTION Enumeration