Share via


ISimpleSyncProviderConstraintConflictResolver.ModifyAndInsertRemoteItem Method

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

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

Syntax

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

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

Parameters

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

Exceptions

Exception Condition
SyncRuntimeInternalErrorException

changeUnitsToCreate contained a change unit of unexpected size.

See Also

Reference

ISimpleSyncProviderConstraintConflictResolver Interface

Microsoft.Synchronization.SimpleProviders Namespace