共用方式為


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 命名空間