共用方式為


NotifyingChangeApplier.ApplyFullEnumerationChanges 方法 (ConflictResolutionPolicy, FullEnumerationChangeBatch, IChangeDataRetriever, 泛型 IEnumerable, SyncKnowledge, ForgottenKnowledge, INotifyingChangeApplierTarget, SyncSessionContext, SyncCallbacks)

針對變更的批次執行衝突偵測、衝突處理和變更套用 (復原同步處理的一部分)。

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