共用方式為


ApplyFullEnumerationChanges 方法 (ConflictResolutionPolicy, FullEnumerationChangeBatch, IChangeDataRetriever, IEnumerable(ItemChange), 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
)
member ApplyFullEnumerationChanges : 
        resolutionPolicy:ConflictResolutionPolicy * 
        sourceChanges:FullEnumerationChangeBatch * 
        changeDataRetriever:IChangeDataRetriever * 
        destinationVersions:IEnumerable<ItemChange> * 
        destinationKnowledge:SyncKnowledge * 
        destinationForgottenKnowledge:ForgottenKnowledge * 
        changeApplierTarget:INotifyingChangeApplierTarget * 
        syncSessionState:SyncSessionContext * 
        syncCallback:SyncCallbacks -> unit 
public function ApplyFullEnumerationChanges(
    resolutionPolicy : ConflictResolutionPolicy, 
    sourceChanges : FullEnumerationChangeBatch, 
    changeDataRetriever : IChangeDataRetriever, 
    destinationVersions : IEnumerable<ItemChange>, 
    destinationKnowledge : SyncKnowledge, 
    destinationForgottenKnowledge : ForgottenKnowledge, 
    changeApplierTarget : INotifyingChangeApplierTarget, 
    syncSessionState : SyncSessionContext, 
    syncCallback : SyncCallbacks
)

參數

例外

例外狀況 條件
ArgumentNullException

sourceChanges、changeDataRetriever、destinationKnowledge、changeApplierTarget、syncCallback 或 destinationVersions 是 null Nothing nullptr unit null 參考 (在 Visual Basic 中為 Nothing) 。

ArgumentOutOfRangeException

resolutionPolicy 不是 ConflictResolutionPolicy 列舉的成員。

SyncIdFormatMismatchException
  • sourceChanges 具有某些被遺忘知識,而它採用的格式與後者不同:destinationKnowledge

-或-

  • destinationForgottenKnowledge 已指定而且具有與後者不同的格式:destinationKnowledge

備註

這個方法會偵測 sourceChanges 中所傳送變更與目的地複寫中對應項目之間發生的衝突。它會根據 resolutionPolicy 所指定的原則,解決任何衝突。如果有必要,這個方法便會呼叫 changeApplierTarget 上的方法,將變更儲存至目的地複寫,並且儲存未解決的衝突。

請參閱

參考

NotifyingChangeApplier類別

NotifyingChangeApplier 成員

ApplyFullEnumerationChanges 多載

Microsoft.Synchronization 命名空間