Share via


MemoryConflictLog Constructor (SyncIdFormatGroup, IConflictLogAccess, IConflictLogWriter)

Initializes a new instance of the MemoryConflictLog class by using the specified ID format schema, conflict log reader, and conflict log writer.

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

Syntax

'Declaration
Public Sub New ( _
    idFormats As SyncIdFormatGroup, _
    conflictLogAccess As IConflictLogAccess, _
    conflictLogWriter As IConflictLogWriter _
)
'Usage
Dim idFormats As SyncIdFormatGroup
Dim conflictLogAccess As IConflictLogAccess
Dim conflictLogWriter As IConflictLogWriter

Dim instance As New MemoryConflictLog(idFormats, _
    conflictLogAccess, conflictLogWriter)
public MemoryConflictLog(
    SyncIdFormatGroup idFormats,
    IConflictLogAccess conflictLogAccess,
    IConflictLogWriter conflictLogWriter
)
public:
MemoryConflictLog(
    SyncIdFormatGroup^ idFormats, 
    IConflictLogAccess^ conflictLogAccess, 
    IConflictLogWriter^ conflictLogWriter
)
new : 
        idFormats:SyncIdFormatGroup * 
        conflictLogAccess:IConflictLogAccess * 
        conflictLogWriter:IConflictLogWriter -> MemoryConflictLog
public function MemoryConflictLog(
    idFormats : SyncIdFormatGroup, 
    conflictLogAccess : IConflictLogAccess, 
    conflictLogWriter : IConflictLogWriter
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

idFormats is a null reference (Nothing in Visual Basic).

Remarks

When this constructor is used, the MemoryConflictLog object chains calls to the methods of conflictLogReader. This allows the change applier to find and delete conflicts in the conflict log of the provider.

Also, the Persist method can be called after synchronization has completed, to save any new conflicts to the conflict log that is represented by conflictLogWriter.

See Also

Reference

MemoryConflictLog Class

MemoryConflictLog Overload

Microsoft.Synchronization Namespace