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.
Assembly: Microsoft.Synchronization (in Microsoft.Synchronization.dll)
public: LoggedConflict( SyncIdFormatGroup^ idFormats, ItemChange^ itemChange, SyncId^ conflictingItemId, ConstraintConflictReason conflictReason, Object^ data, SyncKnowledge^ conflictKnowledge, SyncKnowledge^ madeWithKnowledge, bool temporary )
Parameters
- idFormats
- Type: Microsoft.Synchronization::SyncIdFormatGroup
The ID format schema of the provider.
- itemChange
- Type: Microsoft.Synchronization::ItemChange
The item metadata for the conflicting change from the source provider.
- conflictingItemId
- Type: Microsoft.Synchronization::SyncId
The item ID of the item in the destination replica that conflicts with the item specified by itemChange. Can be a nullptr.
- conflictReason
- Type: Microsoft.Synchronization::ConstraintConflictReason
The reason the conflict occurred.
- data
- Type: System::Object
The item data for itemChange.
- conflictKnowledge
- Type: Microsoft.Synchronization::SyncKnowledge
The knowledge to be learned if this change is applied.
- 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.
- temporary
- Type: System::Boolean
true when this conflict is temporary. Otherwise, false.
| Exception | Condition |
|---|---|
| ArgumentNullException | idFormats, itemChange, data, or conflictKnowledge is a nullptr. |
| SyncIdFormatMismatchException | conflictingItemId is not of the format specified by idFormats. |
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.
Show: