Share via


ISimpleSyncProviderConstraintConflictResolver.ModifyAndUpdateRemoteItem Method

When overridden in a derived class, renames the remote item so that it no longer conflicts with the local item name and updates the remote item in the local replica.

Namespace:  Microsoft.Synchronization.SimpleProviders
Assembly:  Microsoft.Synchronization.SimpleProviders (in Microsoft.Synchronization.SimpleProviders.dll)

Syntax

'Declaration
Sub ModifyAndUpdateRemoteItem ( _
    itemData As Object, _
    changeUnitsToUpdate As IEnumerable(Of SyncId), _
    keyAndExpectedVersion As ItemFieldDictionary, _
    recoverableErrorReportingContext As RecoverableErrorReportingContext, _
    <OutAttribute> ByRef updatedKeyAndVersion As ItemFieldDictionary _
)
'Usage
Dim instance As ISimpleSyncProviderConstraintConflictResolver
Dim itemData As Object
Dim changeUnitsToUpdate As IEnumerable(Of SyncId)
Dim keyAndExpectedVersion As ItemFieldDictionary
Dim recoverableErrorReportingContext As RecoverableErrorReportingContext
Dim updatedKeyAndVersion As ItemFieldDictionary

instance.ModifyAndUpdateRemoteItem(itemData, _
    changeUnitsToUpdate, keyAndExpectedVersion, _
    recoverableErrorReportingContext, _
    updatedKeyAndVersion)
void ModifyAndUpdateRemoteItem(
    Object itemData,
    IEnumerable<SyncId> changeUnitsToUpdate,
    ItemFieldDictionary keyAndExpectedVersion,
    RecoverableErrorReportingContext recoverableErrorReportingContext,
    out ItemFieldDictionary updatedKeyAndVersion
)
void ModifyAndUpdateRemoteItem(
    Object^ itemData, 
    IEnumerable<SyncId^>^ changeUnitsToUpdate, 
    ItemFieldDictionary^ keyAndExpectedVersion, 
    RecoverableErrorReportingContext^ recoverableErrorReportingContext, 
    [OutAttribute] ItemFieldDictionary^% updatedKeyAndVersion
)
abstract ModifyAndUpdateRemoteItem : 
        itemData:Object * 
        changeUnitsToUpdate:IEnumerable<SyncId> * 
        keyAndExpectedVersion:ItemFieldDictionary * 
        recoverableErrorReportingContext:RecoverableErrorReportingContext * 
        updatedKeyAndVersion:ItemFieldDictionary byref -> unit 
function ModifyAndUpdateRemoteItem(
    itemData : Object, 
    changeUnitsToUpdate : IEnumerable<SyncId>, 
    keyAndExpectedVersion : ItemFieldDictionary, 
    recoverableErrorReportingContext : RecoverableErrorReportingContext, 
    updatedKeyAndVersion : ItemFieldDictionary
)

Parameters

  • itemData
    Type: System.Object
    Data for the item in a provider-specific format.

Exceptions

Exception Condition
SyncRuntimeInternalErrorException

changeUnitsToUpdate contained a change unit of unexpected size.

See Also

Reference

ISimpleSyncProviderConstraintConflictResolver Interface

Microsoft.Synchronization.SimpleProviders Namespace