IConflictLogAccess::GetConflictsByConflictingItemId

Gets a list that contains either all of the conflicts in the log, or only the conflicts that conflict with at least one of the items in the specified list of requested items.

HRESULT GetConflictsByConflictingItemId(
  IEnumSyncChanges *pConflictingItems,
  IEnumLoggedConflicts ** ppEnum);   

Parameters

  • pConflictingItems
    [in] Each conflict in the returned list conflicts with one of the items specified in this list.
  • ppEnum
    [out, retval] Returns a list that contains either all of the conflicts in the log, or only the conflicts that conflict with at least one of the items in the specified list of requested items.

Return Value

  • S_OK

  • User-determined error codes

Remarks

The Sync Framework implementation of this method that is provided by the IMemoryConflictLog object returns a list that contains conflicts from both the in-memory conflict log and the conflict log of the provider, when an IConflictLogAccess object was specified in the call to Initialize. To accomplish this, the in-memory conflict log calls the GetConflictsByConflictingItemId method of the conflict log of the provider.

Notes for Implementers

The implementation of this method may simply return all of the conflicts in the log, and ignore the list of requested items specified by pConflictingItems.

If the implementation uses pConflictingItems to determine its output, it must return all conflicts in the log that conflict with an item ID or change unit ID listed in pConflictingItems.

See Also

Reference

IConflictLogAccess Interface