Sdílet prostřednictvím


ISimpleSyncProviderConcurrencyConflictResolver.ResolveUpdateUpdateConflict Method

When overridden in a derived class, resolves conflicts in which an item was updated at both replicas.

Namespace: Microsoft.Synchronization.SimpleProviders
Assembly: Microsoft.Synchronization.SimpleProviders (in microsoft.synchronization.simpleproviders.dll)

Syntax

'Declaration
Sub ResolveUpdateUpdateConflict ( _
    itemData As Object, _
    changeUnitsToMerge As IEnumerable(Of SyncId), _
    changeUnitsToUpdate As IEnumerable(Of SyncId), _
    keyAndExpectedVersion As ItemFieldDictionary, _
    recoverableErrorReportingContext As RecoverableErrorReportingContext, _
    <OutAttribute> ByRef updatedVersion As ItemFieldDictionary _
)
'Usage
Dim instance As ISimpleSyncProviderConcurrencyConflictResolver
Dim itemData As Object
Dim changeUnitsToMerge As IEnumerable(Of SyncId)
Dim changeUnitsToUpdate As IEnumerable(Of SyncId)
Dim keyAndExpectedVersion As ItemFieldDictionary
Dim recoverableErrorReportingContext As RecoverableErrorReportingContext
Dim updatedVersion As ItemFieldDictionary

instance.ResolveUpdateUpdateConflict(itemData, changeUnitsToMerge, changeUnitsToUpdate, keyAndExpectedVersion, recoverableErrorReportingContext, updatedVersion)
void ResolveUpdateUpdateConflict (
    Object itemData,
    IEnumerable<SyncId> changeUnitsToMerge,
    IEnumerable<SyncId> changeUnitsToUpdate,
    ItemFieldDictionary keyAndExpectedVersion,
    RecoverableErrorReportingContext recoverableErrorReportingContext,
    out ItemFieldDictionary updatedVersion
)
void ResolveUpdateUpdateConflict (
    Object^ itemData, 
    IEnumerable<SyncId^>^ changeUnitsToMerge, 
    IEnumerable<SyncId^>^ changeUnitsToUpdate, 
    ItemFieldDictionary^ keyAndExpectedVersion, 
    RecoverableErrorReportingContext^ recoverableErrorReportingContext, 
    [OutAttribute] ItemFieldDictionary^% updatedVersion
)
void ResolveUpdateUpdateConflict (
    Object itemData, 
    IEnumerable<SyncId> changeUnitsToMerge, 
    IEnumerable<SyncId> changeUnitsToUpdate, 
    ItemFieldDictionary keyAndExpectedVersion, 
    RecoverableErrorReportingContext recoverableErrorReportingContext, 
    /** @attribute OutAttribute() */ /** @ref */ ItemFieldDictionary updatedVersion
)
JScript does not support passing value-type arguments by reference.

Parameters

  • itemData
    Data for the item in a provider-specific format.
  • changeUnitsToMerge
    A collection of SyncId objects that represent a set of change units that should be merged during conflict resolution.
  • changeUnitsToUpdate
    A collection of SyncId objects that represent a set of change units that should be updated during conflict resolution.
  • 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.
  • updatedVersion
    Returns the updated version properties of the updated items. If the return value is invalid, the Sync Framework runtime throws ArgumentOutOfRangeException, which ends the session.

Exceptions

Exception type Condition

SyncRuntimeInternalErrorException

changeUnitsToMerge or changeUnitsToUpdate contained a change unit of unexpected size.

See Also

Reference

ISimpleSyncProviderConcurrencyConflictResolver Interface
ISimpleSyncProviderConcurrencyConflictResolver Members
Microsoft.Synchronization.SimpleProviders Namespace