Share via


ChangeBatch.AddLoggedConflict Method

Adds metadata that represents a conflict to the change batch.

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

Syntax

'Declaration
Public Sub AddLoggedConflict ( _
    change As ItemChange, _
    conflictKnowledge As SyncKnowledge _
)
'Usage
Dim instance As ChangeBatch
Dim change As ItemChange
Dim conflictKnowledge As SyncKnowledge

instance.AddLoggedConflict(change, conflictKnowledge)
public void AddLoggedConflict(
    ItemChange change,
    SyncKnowledge conflictKnowledge
)
public:
void AddLoggedConflict(
    ItemChange^ change, 
    SyncKnowledge^ conflictKnowledge
)
member AddLoggedConflict : 
        change:ItemChange * 
        conflictKnowledge:SyncKnowledge -> unit 
public function AddLoggedConflict(
    change : ItemChange, 
    conflictKnowledge : SyncKnowledge
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

change or conflictKnowledge is a null reference (Nothing in Visual Basic).

InvalidOperationException
  • change.CreationVersion is a null reference (Nothing in Visual Basic)

—or—

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

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.

See Also

Reference

ChangeBatch Class

Microsoft.Synchronization Namespace