ChangeBatch::AddLoggedConflict Method

Adds metadata that represents a conflict to the change batch.

Namespace:  Microsoft.Synchronization
Assembly:  Microsoft.Synchronization (in Microsoft.Synchronization.dll)

public:
void AddLoggedConflict(
	ItemChange^ change, 
	SyncKnowledge^ conflictKnowledge
)

Parameters

change
Type: Microsoft.Synchronization::ItemChange
Item change metadata for the change that caused the conflict.
conflictKnowledge
Type: Microsoft.Synchronization::SyncKnowledge
The conflict knowledge that was saved when the conflict was logged.

ExceptionCondition
ArgumentNullException

change or conflictKnowledge is a nullptr.

InvalidOperationException
  • change.CreationVersion is a nullptr

—or—

  • change.ChangeVersion is 0 and change has no unit changes.

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.

Show: