ISimpleSyncProviderConcurrencyConflictResolver.ResolveLocalDeleteRemoteUpdateConflict メソッド

派生クラスでオーバーライドされると、同じ項目がローカル レプリカから削除されリモート レプリカで更新された場合の競合を解決します。

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

構文

'宣言
Sub ResolveLocalDeleteRemoteUpdateConflict ( _
    itemData As Object, _
    changeUnitsToUpdate As IEnumerable(Of SyncId), _
    recoverableErrorReportingContext As RecoverableErrorReportingContext, _
    <OutAttribute> ByRef itemWasDeletedAsResultOfResolution As Boolean, _
    <OutAttribute> ByRef updatedVersion As ItemFieldDictionary _
)
'使用
Dim instance As ISimpleSyncProviderConcurrencyConflictResolver
Dim itemData As Object
Dim changeUnitsToUpdate As IEnumerable(Of SyncId)
Dim recoverableErrorReportingContext As RecoverableErrorReportingContext
Dim itemWasDeletedAsResultOfResolution As Boolean
Dim updatedVersion As ItemFieldDictionary

instance.ResolveLocalDeleteRemoteUpdateConflict(itemData, changeUnitsToUpdate, recoverableErrorReportingContext, itemWasDeletedAsResultOfResolution, updatedVersion)
void ResolveLocalDeleteRemoteUpdateConflict (
    Object itemData,
    IEnumerable<SyncId> changeUnitsToUpdate,
    RecoverableErrorReportingContext recoverableErrorReportingContext,
    out bool itemWasDeletedAsResultOfResolution,
    out ItemFieldDictionary updatedVersion
)
void ResolveLocalDeleteRemoteUpdateConflict (
    Object^ itemData, 
    IEnumerable<SyncId^>^ changeUnitsToUpdate, 
    RecoverableErrorReportingContext^ recoverableErrorReportingContext, 
    [OutAttribute] bool% itemWasDeletedAsResultOfResolution, 
    [OutAttribute] ItemFieldDictionary^% updatedVersion
)
void ResolveLocalDeleteRemoteUpdateConflict (
    Object itemData, 
    IEnumerable<SyncId> changeUnitsToUpdate, 
    RecoverableErrorReportingContext recoverableErrorReportingContext, 
    /** @attribute OutAttribute() */ /** @ref */ boolean itemWasDeletedAsResultOfResolution, 
    /** @attribute OutAttribute() */ /** @ref */ ItemFieldDictionary updatedVersion
)
JScript does not support passing value-type arguments by reference.

パラメーター

  • itemData
    プロバイダー固有形式の項目のデータ。
  • changeUnitsToUpdate
    競合の解決中に更新する必要がある変更単位のセットを表す SyncId オブジェクトのコレクション。
  • recoverableErrorReportingContext
    競合を解決しようとしたときに発生した復旧可能なエラーを報告するための RecoverableErrorReportingContext オブジェクト。
  • itemWasDeletedAsResultOfResolution
    項目がカスタムの解決プロセスの結果として削除されたかどうかを返します。
  • updatedVersion
    更新された項目の更新されたバージョン プロパティを返します。戻り値が有効でない場合、Sync Framework ランタイムは ArgumentOutOfRangeException をスローし、その結果、セッションが終了します。

例外

例外の種類 条件

SyncRuntimeInternalErrorException

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

参照

リファレンス

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