LoggedConflict Constructor (SyncIdFormatGroup, ItemChange, SyncId, ConstraintConflictReason, Object, SyncKnowledge, SyncKnowledge, Boolean)
Initializes a new instance of the LoggedConflict class that represents a constraint conflict, by using the specified ID format schema, item change metadata, conflicting item ID, constraint conflict reason, item data, conflict knowledge, made-with knowledge, and value that indicates whether the conflict is temporary.
Namespace: Microsoft.Synchronization
Assembly: Microsoft.Synchronization (in microsoft.synchronization.dll)
Syntax
'Declaration
Public Sub New ( _
idFormats As SyncIdFormatGroup, _
itemChange As ItemChange, _
conflictingItemId As SyncId, _
conflictReason As ConstraintConflictReason, _
data As Object, _
conflictKnowledge As SyncKnowledge, _
madeWithKnowledge As SyncKnowledge, _
temporary As Boolean _
)
'Usage
Dim idFormats As SyncIdFormatGroup
Dim itemChange As ItemChange
Dim conflictingItemId As SyncId
Dim conflictReason As ConstraintConflictReason
Dim data As Object
Dim conflictKnowledge As SyncKnowledge
Dim madeWithKnowledge As SyncKnowledge
Dim temporary As Boolean
Dim instance As New LoggedConflict(idFormats, itemChange, conflictingItemId, conflictReason, data, conflictKnowledge, madeWithKnowledge, temporary)
public LoggedConflict (
SyncIdFormatGroup idFormats,
ItemChange itemChange,
SyncId conflictingItemId,
ConstraintConflictReason conflictReason,
Object data,
SyncKnowledge conflictKnowledge,
SyncKnowledge madeWithKnowledge,
bool temporary
)
public:
LoggedConflict (
SyncIdFormatGroup^ idFormats,
ItemChange^ itemChange,
SyncId^ conflictingItemId,
ConstraintConflictReason conflictReason,
Object^ data,
SyncKnowledge^ conflictKnowledge,
SyncKnowledge^ madeWithKnowledge,
bool temporary
)
public LoggedConflict (
SyncIdFormatGroup idFormats,
ItemChange itemChange,
SyncId conflictingItemId,
ConstraintConflictReason conflictReason,
Object data,
SyncKnowledge conflictKnowledge,
SyncKnowledge madeWithKnowledge,
boolean temporary
)
public function LoggedConflict (
idFormats : SyncIdFormatGroup,
itemChange : ItemChange,
conflictingItemId : SyncId,
conflictReason : ConstraintConflictReason,
data : Object,
conflictKnowledge : SyncKnowledge,
madeWithKnowledge : SyncKnowledge,
temporary : boolean
)
Parameters
- idFormats
The ID format schema of the provider.
- itemChange
The item metadata for the conflicting change from the source provider.
- conflictingItemId
The item ID of the item in the destination replica that conflicts with the item specified by itemChange. Can be a null reference (Nothing in Visual Basic).
- conflictReason
The reason the conflict occurred.
- 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.
- temporary
true when this conflict is temporary. Otherwise, false.
Exceptions
Exception type | Condition |
---|---|
idFormats or itemChange or data or conflictKnowledge is a null reference (Nothing in Visual Basic). |
|
conflictingItemId is not of the format specified by idFormats. |
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