ISyncCallback::OnConflict method (winsync.h)

Occurs when a conflict is detected when the concurrency conflict resolution policy is set to CRP_NONE.

Syntax

HRESULT OnConflict(
  [in] IChangeConflict *pConflict
);

Parameters

[in] pConflict

Information about the conflict. This includes metadata and item data for the two changes that are in conflict.

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.
Application-determined error codes.

Remarks

This notification can be used by an application to perform custom conflict resolution for concurrency conflicts. To accomplish this, the application inspects and processes the contents of pConflict, and then sets the resolution action for the conflict by calling IChangeConflict::SetResolveActionForChange before it returns from this method.

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 Interface

SYNC_FULL_ENUMERATION_ACTION Enumeration