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
)
void MergeConstraintConflict (
    Object itemData, 
    ConflictVersionInformation conflictVersionInformation, 
    IEnumerable<SyncId> changeUnitsToMerge, 
    ItemFieldDictionary localConflictingItem, 
    ItemFieldDictionary keyAndExpectedVersion, 
    RecoverableErrorReportingContext recoverableErrorReportingContext, 
    /** @attribute OutAttribute() */ /** @ref */ ItemFieldDictionary updatedKeyAndVersion
)
JScript does not support passing value-type arguments by reference.

Parameters

  • itemData
    Data for the item in a provider-specific format.
  • 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
    A collection of SyncId objects that represent the set of change units to merge during conflict resolution.
  • localConflictingItem
    The fields that are associated with the local item that is in conflict.
  • keyAndExpectedVersion
    The key and version properties of the item that is in conflict.
  • recoverableErrorReportingContext
    A RecoverableErrorReportingContext object that is used to report recoverable errors that occur during attempts to resolve a conflict.
  • updatedKeyAndVersion
    Returns the key and version properties that were modified as a result of conflict resolution.

Exceptions

Exception type Condition

SyncRuntimeInternalErrorException

changeUnitsToMerge contained a change unit of unexpected size.

See Also

Reference

ISimpleSyncProviderConstraintConflictResolver Interface
ISimpleSyncProviderConstraintConflictResolver Members
Microsoft.Synchronization.SimpleProviders Namespace