ISyncChangeBatch::AddLoggedConflict
Adds metadata that represents a conflict to the change batch.
HRESULT AddLoggedConflict(
const BYTE * pbOwnerReplicaId,
const BYTE * pbItemId,
const SYNC_VERSION * pChangeVersion,
const SYNC_VERSION * pCreationVersion,
DWORD dwFlags,
DWORD dwWorkForChange,
ISyncKnowledge * pConflictKnowledge,
ISyncChangeBuilder ** ppChangeBuilder);
Parameters
- pbOwnerReplicaId
[in] The ID of the replica that made the change in conflict.
- pbItemId
[in] The ID of the item.
- pChangeVersion
[in] The version of the change.
- pCreationVersion
[in] The creation version of the item.
- dwFlags
[in] Flags that specify the state of the item change. For the flag values, see SYNC_CHANGE_FLAG Flags.
- dwWorkForChange
[in] The work estimate for the change. This value is used during change application to report completed work to the application.
- pConflictKnowledge
[in] The conflict knowledge that was saved when the conflict was logged.
- ppChangeBuilder
[out] Returns an object that can be used to add change unit information to the change.
Return Value
S_OK
E_POINTER
SYNC_E_CHANGE_BATCH_IS_READ_ONLY when the ISyncChangeBatch object was created by using IProviderSyncServices::DeserializeChangeBatch.
Remarks
Conflicts that are added to the change batch are not added to a group. A group does not have to be opened to add conflicts to the change batch.