Udostępnij za pośrednictwem


MemoryConflictLog.SaveConflict Method

Saves information about a change that caused a concurrency conflict.

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

Syntax

'Declaration
Public Sub SaveConflict ( _
    conflictingChange As ItemChange, _
    conflictingChangeData As Object, _
    conflictingChangeKnowledge As SyncKnowledge _
)
'Usage
Dim instance As MemoryConflictLog
Dim conflictingChange As ItemChange
Dim conflictingChangeData As Object
Dim conflictingChangeKnowledge As SyncKnowledge

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

Parameters

  • conflictingChange
    The item metadata for the conflicting change.
  • conflictingChangeData
    The item data for the conflicting change.
  • conflictingChangeKnowledge
    The knowledge to be learned if this change is applied. This must be saved with the change.

Exceptions

Exception type Condition

ArgumentNullException

conflictingChange or conflictingChangeKnowledge is a null reference (Nothing in Visual Basic).

Remarks

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

See Also

Reference

MemoryConflictLog Class
MemoryConflictLog Members
Microsoft.Synchronization Namespace