ISimpleSyncProviderConstraintConflictResolver.ModifyAndInsertRemoteItem 方法

在派生类中重写时,重命名远程项,以便它不再与本地项名称冲突并将该远程项插入到本地副本中。

命名空间: Microsoft.Synchronization.SimpleProviders
程序集: Microsoft.Synchronization.SimpleProviders(在 microsoft.synchronization.simpleproviders.dll 中)

语法

声明
Sub ModifyAndInsertRemoteItem ( _
    itemData As Object, _
    changeUnitsToCreate As IEnumerable(Of SyncId), _
    recoverableErrorReportingContext As RecoverableErrorReportingContext, _
    <OutAttribute> ByRef updatedKeyAndVersion As ItemFieldDictionary _
)
用法
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
)
void ModifyAndInsertRemoteItem (
    Object itemData, 
    IEnumerable<SyncId> changeUnitsToCreate, 
    RecoverableErrorReportingContext recoverableErrorReportingContext, 
    /** @attribute OutAttribute() */ /** @ref */ ItemFieldDictionary updatedKeyAndVersion
)
JScript does not support passing value-type arguments by reference.

参数

  • itemData
    特定于提供程序的格式的项数据。
  • changeUnitsToCreate
    SyncId 对象的集合,这些对象表示在解决冲突的过程中要创建的一组变更单位。
  • updatedKeyAndVersion
    返回为冲突解决而创建的键属性和版本属性。

异常

异常类型 条件

SyncRuntimeInternalErrorException

changeUnitsToCreate 包含了意外大小的变更单位。

请参阅

参考

ISimpleSyncProviderConstraintConflictResolver 接口
ISimpleSyncProviderConstraintConflictResolver 成员
Microsoft.Synchronization.SimpleProviders 命名空间