次の方法で共有


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 オブジェクトのコレクション。
  • recoverableErrorReportingContext
    競合を解決しようとしたときに発生した復旧可能なエラーを報告するための RecoverableErrorReportingContext オブジェクト。
  • updatedKeyAndVersion
    競合解決の結果として作成されたキー プロパティおよびバージョン プロパティを返します。

例外

例外の種類 条件

SyncRuntimeInternalErrorException

changeUnitsToCreate に予期しないサイズの変更単位が含まれていました。

参照

リファレンス

ISimpleSyncProviderConstraintConflictResolver インターフェイス
ISimpleSyncProviderConstraintConflictResolver メンバー
Microsoft.Synchronization.SimpleProviders 名前空間