ISimpleSyncProviderConstraintConflictResolver.MergeConstraintConflict Method
When overridden in a derived class, merges local and remote data into one item that is applied at the destination.
Namespace: Microsoft.Synchronization.SimpleProviders
Assembly: Microsoft.Synchronization.SimpleProviders (in Microsoft.Synchronization.SimpleProviders.dll)
Syntax
'Declaration
Sub MergeConstraintConflict ( _
itemData As Object, _
conflictVersionInformation As ConflictVersionInformation, _
changeUnitsToMerge As IEnumerable(Of SyncId), _
localConflictingItem As ItemFieldDictionary, _
keyAndExpectedVersion As ItemFieldDictionary, _
recoverableErrorReportingContext As RecoverableErrorReportingContext, _
<OutAttribute> ByRef updatedKeyAndVersion As ItemFieldDictionary _
)
'Usage
Dim instance As ISimpleSyncProviderConstraintConflictResolver
Dim itemData As Object
Dim conflictVersionInformation As ConflictVersionInformation
Dim changeUnitsToMerge As IEnumerable(Of SyncId)
Dim localConflictingItem As ItemFieldDictionary
Dim keyAndExpectedVersion As ItemFieldDictionary
Dim recoverableErrorReportingContext As RecoverableErrorReportingContext
Dim updatedKeyAndVersion As ItemFieldDictionary
instance.MergeConstraintConflict(itemData, _
conflictVersionInformation, changeUnitsToMerge, _
localConflictingItem, keyAndExpectedVersion, _
recoverableErrorReportingContext, _
updatedKeyAndVersion)
void MergeConstraintConflict(
Object itemData,
ConflictVersionInformation conflictVersionInformation,
IEnumerable<SyncId> changeUnitsToMerge,
ItemFieldDictionary localConflictingItem,
ItemFieldDictionary keyAndExpectedVersion,
RecoverableErrorReportingContext recoverableErrorReportingContext,
out ItemFieldDictionary updatedKeyAndVersion
)
void MergeConstraintConflict(
Object^ itemData,
ConflictVersionInformation^ conflictVersionInformation,
IEnumerable<SyncId^>^ changeUnitsToMerge,
ItemFieldDictionary^ localConflictingItem,
ItemFieldDictionary^ keyAndExpectedVersion,
RecoverableErrorReportingContext^ recoverableErrorReportingContext,
[OutAttribute] ItemFieldDictionary^% updatedKeyAndVersion
)
abstract MergeConstraintConflict :
itemData:Object *
conflictVersionInformation:ConflictVersionInformation *
changeUnitsToMerge:IEnumerable<SyncId> *
localConflictingItem:ItemFieldDictionary *
keyAndExpectedVersion:ItemFieldDictionary *
recoverableErrorReportingContext:RecoverableErrorReportingContext *
updatedKeyAndVersion:ItemFieldDictionary byref -> unit
function MergeConstraintConflict(
itemData : Object,
conflictVersionInformation : ConflictVersionInformation,
changeUnitsToMerge : IEnumerable<SyncId>,
localConflictingItem : ItemFieldDictionary,
keyAndExpectedVersion : ItemFieldDictionary,
recoverableErrorReportingContext : RecoverableErrorReportingContext,
updatedKeyAndVersion : ItemFieldDictionary
)
Parameters
- itemData
Type: System.Object
Data for the item in a provider-specific format.
- conflictVersionInformation
Type: Microsoft.Synchronization.SimpleProviders.ConflictVersionInformation
A ConflictVersionInformation object that contains information about what item versions, if any, are known to the remote provider for the item that is in conflict.
- changeUnitsToMerge
Type: System.Collections.Generic.IEnumerable<SyncId>
A collection of SyncId objects that represent the set of change units to merge during conflict resolution.
- localConflictingItem
Type: Microsoft.Synchronization.SimpleProviders.ItemFieldDictionary
The fields that are associated with the local item that is in conflict.
- keyAndExpectedVersion
Type: Microsoft.Synchronization.SimpleProviders.ItemFieldDictionary
The key and version properties of the item that is in conflict.
- recoverableErrorReportingContext
Type: Microsoft.Synchronization.SimpleProviders.RecoverableErrorReportingContext
A RecoverableErrorReportingContext object that is used to report recoverable errors that occur during attempts to resolve a conflict.
- updatedKeyAndVersion
Type: Microsoft.Synchronization.SimpleProviders.ItemFieldDictionary%
Returns the key and version properties that were modified as a result of conflict resolution.
Exceptions
Exception | Condition |
---|---|
SyncRuntimeInternalErrorException | changeUnitsToMerge contained a change unit of unexpected size. |