Not
Åtkomst till denna sida kräver auktorisation. Du kan prova att logga in eller byta katalog.
Åtkomst till denna sida kräver auktorisation. Du kan prova att byta katalog.
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
)
new :
idFormats:SyncIdFormatGroup *
itemChange:ItemChange *
conflictingItemId:SyncId *
conflictReason:ConstraintConflictReason *
data:Object *
conflictKnowledge:SyncKnowledge *
madeWithKnowledge:SyncKnowledge *
temporary:bool -> LoggedConflict
public function LoggedConflict(
idFormats : SyncIdFormatGroup,
itemChange : ItemChange,
conflictingItemId : SyncId,
conflictReason : ConstraintConflictReason,
data : Object,
conflictKnowledge : SyncKnowledge,
madeWithKnowledge : SyncKnowledge,
temporary : boolean
)
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 null reference (Nothing in Visual Basic).
- 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.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | idFormats, itemChange, data, or conflictKnowledge is a null reference (Nothing in Visual Basic). |
| SyncIdFormatMismatchException | 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.