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
- 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.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | change or conflictKnowledge is a null reference (Nothing in Visual Basic). |
InvalidOperationException |
—or—
|
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.