Dela 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
)
new : 
        idFormats:SyncIdFormatGroup * 
        itemChange:ItemChange * 
        data:Object * 
        conflictKnowledge:SyncKnowledge * 
        madeWithKnowledge:SyncKnowledge -> LoggedConflict
public function LoggedConflict(
    idFormats : SyncIdFormatGroup, 
    itemChange : ItemChange, 
    data : Object, 
    conflictKnowledge : SyncKnowledge, 
    madeWithKnowledge : SyncKnowledge
)

Parameters

  • madeWithKnowledge
    Type: Microsoft.Synchronization.SyncKnowledge
    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 Condition
ArgumentNullException

idFormats, itemChange, 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 Overload

Microsoft.Synchronization Namespace