次の方法で共有


NotifyingChangeApplier.ApplyFullEnumerationChanges メソッド

完全な列挙の一部として、変更バッチに対して競合検出、競合処理、および変更の適用を実行します。

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

構文

'宣言
Public Sub ApplyFullEnumerationChanges ( _
    resolutionPolicy As ConflictResolutionPolicy, _
    sourceChanges As FullEnumerationChangeBatch, _
    changeDataRetriever As IChangeDataRetriever, _
    destinationVersions As IEnumerable(Of ItemChange), _
    destinationKnowledge As SyncKnowledge, _
    destinationForgottenKnowledge As ForgottenKnowledge, _
    changeApplierTarget As INotifyingChangeApplierTarget, _
    syncSessionState As SyncSessionContext, _
    syncCallback As SyncCallbacks _
)
'使用
Dim instance As NotifyingChangeApplier
Dim resolutionPolicy As ConflictResolutionPolicy
Dim sourceChanges As FullEnumerationChangeBatch
Dim changeDataRetriever As IChangeDataRetriever
Dim destinationVersions As IEnumerable(Of ItemChange)
Dim destinationKnowledge As SyncKnowledge
Dim destinationForgottenKnowledge As ForgottenKnowledge
Dim changeApplierTarget As INotifyingChangeApplierTarget
Dim syncSessionState As SyncSessionContext
Dim syncCallback As SyncCallbacks

instance.ApplyFullEnumerationChanges(resolutionPolicy, sourceChanges, changeDataRetriever, destinationVersions, destinationKnowledge, destinationForgottenKnowledge, changeApplierTarget, syncSessionState, syncCallback)
public void ApplyFullEnumerationChanges (
    ConflictResolutionPolicy resolutionPolicy,
    FullEnumerationChangeBatch sourceChanges,
    IChangeDataRetriever changeDataRetriever,
    IEnumerable<ItemChange> destinationVersions,
    SyncKnowledge destinationKnowledge,
    ForgottenKnowledge destinationForgottenKnowledge,
    INotifyingChangeApplierTarget changeApplierTarget,
    SyncSessionContext syncSessionState,
    SyncCallbacks syncCallback
)
public:
void ApplyFullEnumerationChanges (
    ConflictResolutionPolicy resolutionPolicy, 
    FullEnumerationChangeBatch^ sourceChanges, 
    IChangeDataRetriever^ changeDataRetriever, 
    IEnumerable<ItemChange^>^ destinationVersions, 
    SyncKnowledge^ destinationKnowledge, 
    ForgottenKnowledge^ destinationForgottenKnowledge, 
    INotifyingChangeApplierTarget^ changeApplierTarget, 
    SyncSessionContext^ syncSessionState, 
    SyncCallbacks^ syncCallback
)
public void ApplyFullEnumerationChanges (
    ConflictResolutionPolicy resolutionPolicy, 
    FullEnumerationChangeBatch sourceChanges, 
    IChangeDataRetriever changeDataRetriever, 
    IEnumerable<ItemChange> destinationVersions, 
    SyncKnowledge destinationKnowledge, 
    ForgottenKnowledge destinationForgottenKnowledge, 
    INotifyingChangeApplierTarget changeApplierTarget, 
    SyncSessionContext syncSessionState, 
    SyncCallbacks syncCallback
)
public function ApplyFullEnumerationChanges (
    resolutionPolicy : ConflictResolutionPolicy, 
    sourceChanges : FullEnumerationChangeBatch, 
    changeDataRetriever : IChangeDataRetriever, 
    destinationVersions : IEnumerable<ItemChange>, 
    destinationKnowledge : SyncKnowledge, 
    destinationForgottenKnowledge : ForgottenKnowledge, 
    changeApplierTarget : INotifyingChangeApplierTarget, 
    syncSessionState : SyncSessionContext, 
    syncCallback : SyncCallbacks
)

パラメータ

  • resolutionPolicy
    競合を解決するために使用するポリシーです。
  • sourceChanges
    同期元プロバイダからの変更のバッチです。
  • changeDataRetriever
    同期元レプリカから項目データを取得するために使用できるオブジェクトです。
  • destinationVersions
    同期先レプリカに格納されている項目のバージョンが含まれている変更バッチです。これらの項目は、sourceChanges の項目に対応しています。
  • destinationKnowledge
    同期先レプリカのナレッジです。
  • destinationForgottenKnowledge
    同期先レプリカの忘れられたナレッジです。
  • changeApplierTarget
    変更および競合を保存するために呼び出されるオブジェクトです。
  • syncSessionState
    現在のセッションに関する状態情報です。
  • syncCallback
    変更の適用イベントに関する通知を受信するコールバックです。

解説

このメソッドは、sourceChanges で送信された変更と同期先レプリカ内の対応する項目との間で発生する競合を検出します。競合は、resolutionPolicy で指定されたポリシーに従って解決されます。必要に応じて、このメソッドは、changeApplierTarget のメソッドを呼び出し、同期先レプリカへの変更を保存し、未解決の競合を保存します。

参照

リファレンス

NotifyingChangeApplier クラス
NotifyingChangeApplier メンバ
Microsoft.Synchronization 名前空間