IChangeConflict::SetResolveActionForChangeUnit method (winsync.h)

Sets a conflict resolution action for the conflicting change unit change.

Syntax

HRESULT SetResolveActionForChangeUnit(
  [in] ISyncChangeUnit     *pChangeUnit,
  [in] SYNC_RESOLVE_ACTION resolveAction
);

Parameters

[in] pChangeUnit

The change unit for which to set the conflict resolution action.

[in] resolveAction

The conflict resolution action to set for pChangeUnit.

Return value

The possible return codes include, but are not limited to, the values shown in the following table.

Return code Description
S_OK
The method succeeded.
E_POINTER
Invalid pointer.
SYNC_E_INTERNAL_ERROR
When the conflict is an update-delete conflict, or when no conflict exists.

Remarks

Be aware that setting the conflict resolution action for a change unit on an update-delete conflict is not valid, because this type of conflict must be resolved at the item level.

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

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header winsync.h

See also

IChangeConflict Interface

ISyncCallback::OnConflict Method

SYNC RESOLVE ACTION Enumeration