MemoryConflictLog::SaveConflict Method

Saves information about a change that caused a concurrency conflict.

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

public:
virtual void SaveConflict(
	ItemChange^ conflictingChange, 
	Object^ conflictingChangeData, 
	SyncKnowledge^ conflictingChangeKnowledge
) sealed

Parameters

conflictingChange
Type: Microsoft.Synchronization::ItemChange
The item metadata for the conflicting change.
conflictingChangeData
Type: System::Object
The item data for the conflicting change.
conflictingChangeKnowledge
Type: Microsoft.Synchronization::SyncKnowledge
The knowledge to be learned if this change is applied. This must be saved with the change.

Implements

IConflictLogWriter::SaveConflict(ItemChange, Object, SyncKnowledge)

ExceptionCondition
ArgumentNullException

conflictingChange or conflictingChangeKnowledge is a nullptr.

The conflict is saved to the in-memory conflict log. To save the conflict after synchronization completes, call Persist.

Show: