Udostępnij za pośrednictwem


MemoryConflictLog Constructor (SyncIdFormatGroup, IConflictLogWriter)

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

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

Syntax

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

Dim instance As New MemoryConflictLog(idFormats, conflictLogWriter)
public MemoryConflictLog (
    SyncIdFormatGroup idFormats,
    IConflictLogWriter conflictLogWriter
)
public:
MemoryConflictLog (
    SyncIdFormatGroup^ idFormats, 
    IConflictLogWriter^ conflictLogWriter
)
public MemoryConflictLog (
    SyncIdFormatGroup idFormats, 
    IConflictLogWriter conflictLogWriter
)
public function MemoryConflictLog (
    idFormats : SyncIdFormatGroup, 
    conflictLogWriter : IConflictLogWriter
)

Parameters

  • idFormats
    The ID format schema of the provider.
  • conflictLogWriter
    The conflict log writer that represents the conflict log of the provider.

Exceptions

Exception type Condition

ArgumentNullException

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

Remarks

When this constructor is used, 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 Members
Microsoft.Synchronization Namespace