Share via


ISimpleSyncProviderConstraintConflictResolver.MergeConstraintConflict メソッド

派生クラスでオーバーライドされると、同期先に適用される 1 つの項目に、ローカル データとリモート データをマージします。

名前空間: Microsoft.Synchronization.SimpleProviders
アセンブリ: Microsoft.Synchronization.SimpleProviders (microsoft.synchronization.simpleproviders.dll 内)

構文

'宣言
Sub MergeConstraintConflict ( _
    itemData As Object, _
    conflictVersionInformation As ConflictVersionInformation, _
    changeUnitsToMerge As IEnumerable(Of SyncId), _
    localConflictingItem As ItemFieldDictionary, _
    keyAndExpectedVersion As ItemFieldDictionary, _
    recoverableErrorReportingContext As RecoverableErrorReportingContext, _
    <OutAttribute> ByRef updatedKeyAndVersion As ItemFieldDictionary _
)
'使用
Dim instance As ISimpleSyncProviderConstraintConflictResolver
Dim itemData As Object
Dim conflictVersionInformation As ConflictVersionInformation
Dim changeUnitsToMerge As IEnumerable(Of SyncId)
Dim localConflictingItem As ItemFieldDictionary
Dim keyAndExpectedVersion As ItemFieldDictionary
Dim recoverableErrorReportingContext As RecoverableErrorReportingContext
Dim updatedKeyAndVersion As ItemFieldDictionary

instance.MergeConstraintConflict(itemData, conflictVersionInformation, changeUnitsToMerge, localConflictingItem, keyAndExpectedVersion, recoverableErrorReportingContext, updatedKeyAndVersion)
void MergeConstraintConflict (
    Object itemData,
    ConflictVersionInformation conflictVersionInformation,
    IEnumerable<SyncId> changeUnitsToMerge,
    ItemFieldDictionary localConflictingItem,
    ItemFieldDictionary keyAndExpectedVersion,
    RecoverableErrorReportingContext recoverableErrorReportingContext,
    out ItemFieldDictionary updatedKeyAndVersion
)
void MergeConstraintConflict (
    Object^ itemData, 
    ConflictVersionInformation^ conflictVersionInformation, 
    IEnumerable<SyncId^>^ changeUnitsToMerge, 
    ItemFieldDictionary^ localConflictingItem, 
    ItemFieldDictionary^ keyAndExpectedVersion, 
    RecoverableErrorReportingContext^ recoverableErrorReportingContext, 
    [OutAttribute] ItemFieldDictionary^% updatedKeyAndVersion
)
void MergeConstraintConflict (
    Object itemData, 
    ConflictVersionInformation conflictVersionInformation, 
    IEnumerable<SyncId> changeUnitsToMerge, 
    ItemFieldDictionary localConflictingItem, 
    ItemFieldDictionary keyAndExpectedVersion, 
    RecoverableErrorReportingContext recoverableErrorReportingContext, 
    /** @attribute OutAttribute() */ /** @ref */ ItemFieldDictionary updatedKeyAndVersion
)
JScript does not support passing value-type arguments by reference.

パラメーター

  • itemData
    プロバイダー固有形式の項目のデータ。
  • conflictVersionInformation
    競合している項目についてリモート プロバイダーが認識している項目のバージョンに関する情報を格納する ConflictVersionInformation オブジェクト。
  • changeUnitsToMerge
    競合の解決中にマージする変更単位のセットを表す SyncId オブジェクトのコレクション。
  • localConflictingItem
    競合しているローカル項目に関連付けられているフィールド。
  • keyAndExpectedVersion
    競合している項目のキー プロパティとバージョン プロパティ。
  • recoverableErrorReportingContext
    競合を解決しようとしたときに発生した復旧可能なエラーを報告するための RecoverableErrorReportingContext オブジェクト。
  • updatedKeyAndVersion
    競合解決の結果として変更されたキー プロパティおよびバージョン プロパティを返します。

例外

例外の種類 条件

SyncRuntimeInternalErrorException

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

参照

リファレンス

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