KnowledgeSyncProvider.ProcessFullEnumerationChangeBatch 方法
在衍生類別中覆寫時,透過將變更套用至項目存放區,處理完整列舉的一組變更。
命名空間: Microsoft.Synchronization
組件: Microsoft.Synchronization (在 microsoft.synchronization.dll)
語法
'宣告
Public MustOverride Sub ProcessFullEnumerationChangeBatch ( _
resolutionPolicy As ConflictResolutionPolicy, _
sourceChanges As FullEnumerationChangeBatch, _
changeDataRetriever As Object, _
syncCallbacks As SyncCallbacks, _
sessionStatistics As SyncSessionStatistics _
)
'用途
Dim instance As KnowledgeSyncProvider
Dim resolutionPolicy As ConflictResolutionPolicy
Dim sourceChanges As FullEnumerationChangeBatch
Dim changeDataRetriever As Object
Dim syncCallbacks As SyncCallbacks
Dim sessionStatistics As SyncSessionStatistics
instance.ProcessFullEnumerationChangeBatch(resolutionPolicy, sourceChanges, changeDataRetriever, syncCallbacks, sessionStatistics)
public abstract void ProcessFullEnumerationChangeBatch (
ConflictResolutionPolicy resolutionPolicy,
FullEnumerationChangeBatch sourceChanges,
Object changeDataRetriever,
SyncCallbacks syncCallbacks,
SyncSessionStatistics sessionStatistics
)
public:
virtual void ProcessFullEnumerationChangeBatch (
ConflictResolutionPolicy resolutionPolicy,
FullEnumerationChangeBatch^ sourceChanges,
Object^ changeDataRetriever,
SyncCallbacks^ syncCallbacks,
SyncSessionStatistics^ sessionStatistics
) abstract
public abstract void ProcessFullEnumerationChangeBatch (
ConflictResolutionPolicy resolutionPolicy,
FullEnumerationChangeBatch sourceChanges,
Object changeDataRetriever,
SyncCallbacks syncCallbacks,
SyncSessionStatistics sessionStatistics
)
public abstract function ProcessFullEnumerationChangeBatch (
resolutionPolicy : ConflictResolutionPolicy,
sourceChanges : FullEnumerationChangeBatch,
changeDataRetriever : Object,
syncCallbacks : SyncCallbacks,
sessionStatistics : SyncSessionStatistics
)
參數
- resolutionPolicy
當這個方法套用變更時要使用的衝突解決原則。
- sourceChanges
要在本機套用之來源提供者的變更批次。
- changeDataRetriever
可用來擷取變更資料的物件。它可以是 IChangeDataRetriever 物件或提供者特有的物件。
- syncCallbacks
在變更套用期間接收事件通知的物件。
- sessionStatistics
追蹤變更統計資料。若為使用自訂變更套用的提供者,就必須使用變更套用的結果來更新這個物件。
備註
在被遺忘的知識復原期間會呼叫這個方法。
實作器注意事項: 使用 NotifyingChangeApplier 來套用變更的提供者必須依識別碼排序,列舉其中項目識別碼介於 sourceChanges 的 DestinationVersionEnumerationRangeLowerBound 與 DestinationVersionEnumerationRangeUpperBound 屬性間之複寫內所有變更。然後,這份目的地變更清單必須提供給 ApplyFullEnumerationChanges。
請參閱
參考
KnowledgeSyncProvider 類別
KnowledgeSyncProvider 成員
Microsoft.Synchronization 命名空間