ISimpleSyncProviderConstraintConflictResolver::MergeConstraintConflict

When overridden in a derived class, merges local and remote data into one item that is applied at the destination.

HRESULT MergeConstraintConflict(
  IUnknown *pItemData,
  const CONFLICT_INFORMATION *pAdditionalConflictInfo,
  const CHANGE_UNIT_SET *pChangeUnits,
  const ITEM_FIELDS *pLocalConflictingItemInfo,
  const ITEM_FIELDS *pKeyAndExpectedVersionInfo,
  IRecoverableErrorCallback *pRecoverableErrorCallback,
  ITEM_FIELDS **ppMergedItemKeyAndVersionInfo);

Parameters

  • pItemData
    [in] Data for the item in a provider-specific format.
  • pAdditionalConflictInfo
    [in, unique] A CONFLICT_INFORMATION object that contains information about any item versions that are known to the remote provider for the item that is in conflict.
  • pChangeUnits
    [in, unique] A collection of CHANGE_UNIT_SET objects that represent a set of change units for which a conflict was reported.
  • pLocalConflictingItemInfo
    [in] The fields that are associated with the local item that is in conflict.
  • pKeyAndExpectedVersionInfo
    [in, unique] The key and version properties of the item that is in conflict.
  • pRecoverableErrorCallback
    [in] An IRecoverableErrorCallback object that contains methods that can be called if a recoverable error occurs during conflict handling.
  • ppMergedItemKeyAndVersionInfo
    [out] Returns the key and version properties of pLocalConflictingItemInfo that were merged as a result of conflict resolution.

Return Value

  • S_OK

See Also

Reference

ISimpleSyncProviderConstraintConflictResolver Interface