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.
Assembly: Microsoft.Synchronization (in Microsoft.Synchronization.dll)
public:
MemoryConflictLog(
SyncIdFormatGroup^ idFormats,
IConflictLogAccess^ conflictLogAccess,
IConflictLogWriter^ conflictLogWriter
)
Parameters
- idFormats
- Type: Microsoft.Synchronization::SyncIdFormatGroup
The ID format schema of the provider.
- conflictLogAccess
- Type: Microsoft.Synchronization::IConflictLogAccess
The conflict log reader that represents the conflict log of the provider.
- conflictLogWriter
- Type: Microsoft.Synchronization::IConflictLogWriter
The conflict log writer that represents the conflict log of the provider.
| Exception | Condition |
|---|---|
| ArgumentNullException | idFormats is a nullptr. |
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.
Show: