Share via


LoggedConflict Constructor (SyncIdFormatGroup, ItemChange, Object, SyncKnowledge, SyncKnowledge)

Initializes a new instance of the LoggedConflict class that represents a concurrency conflict, by using the specified ID format schema, item change metadata, item data, conflict knowledge, and made-with knowledge.

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

Syntax

'Declaration
Public Sub New ( _
    idFormats As SyncIdFormatGroup, _
    itemChange As ItemChange, _
    data As Object, _
    conflictKnowledge As SyncKnowledge, _
    madeWithKnowledge As SyncKnowledge _
)
'Usage
Dim idFormats As SyncIdFormatGroup
Dim itemChange As ItemChange
Dim data As Object
Dim conflictKnowledge As SyncKnowledge
Dim madeWithKnowledge As SyncKnowledge

Dim instance As New LoggedConflict(idFormats, itemChange, data, conflictKnowledge, madeWithKnowledge)
public LoggedConflict (
    SyncIdFormatGroup idFormats,
    ItemChange itemChange,
    Object data,
    SyncKnowledge conflictKnowledge,
    SyncKnowledge madeWithKnowledge
)
public:
LoggedConflict (
    SyncIdFormatGroup^ idFormats, 
    ItemChange^ itemChange, 
    Object^ data, 
    SyncKnowledge^ conflictKnowledge, 
    SyncKnowledge^ madeWithKnowledge
)
public LoggedConflict (
    SyncIdFormatGroup idFormats, 
    ItemChange itemChange, 
    Object data, 
    SyncKnowledge conflictKnowledge, 
    SyncKnowledge madeWithKnowledge
)
public function LoggedConflict (
    idFormats : SyncIdFormatGroup, 
    itemChange : ItemChange, 
    data : Object, 
    conflictKnowledge : SyncKnowledge, 
    madeWithKnowledge : SyncKnowledge
)

Parameters

  • idFormats
    The ID format schema of the provider.
  • itemChange
    The item metadata for the conflicting change from the source provider.
  • data
    The item data for itemChange.
  • conflictKnowledge
    The knowledge to be learned if this change is applied.
  • madeWithKnowledge
    The made-with knowledge for this change. The made-with knowledge for a change is typically the knowledge that the replica had when this change was made.

Exceptions

Exception type Condition

ArgumentNullException

idFormats or itemChange or data or conflictKnowledge is a null reference (Nothing in Visual Basic).

Remarks

The newly created LoggedConflict object adds references to the conflict knowledge and made-with knowledge objects that are passed in conflictKnowledge and madeWithKnowledge, but does not clone them.

See Also

Reference

LoggedConflict Class
LoggedConflict Members
Microsoft.Synchronization Namespace