RelationalSyncProvider.ProcessChangeBatch 方法
在已有解決原則、來源變更、變更資料擷取器、回呼和統計資料參數時,處理變更批次。
此方法與 CLS 不相容。
命名空間: Microsoft.Synchronization.Data
組件: Microsoft.Synchronization.Data (在 microsoft.synchronization.data.dll)
語法
'宣告
<SuppressMessageAttribute("Microsoft.Design", "CA1062:ValidateArgumentsOfPublicMethods")> _
Public Overrides Sub ProcessChangeBatch ( _
resolutionPolicy As ConflictResolutionPolicy, _
sourceChanges As ChangeBatch, _
changeDataRetriever As Object, _
syncCallbacks As SyncCallbacks, _
sessionStatistics As SyncSessionStatistics _
)
'用途
Dim instance As RelationalSyncProvider
Dim resolutionPolicy As ConflictResolutionPolicy
Dim sourceChanges As ChangeBatch
Dim changeDataRetriever As Object
Dim syncCallbacks As SyncCallbacks
Dim sessionStatistics As SyncSessionStatistics
instance.ProcessChangeBatch(resolutionPolicy, sourceChanges, changeDataRetriever, syncCallbacks, sessionStatistics)
[SuppressMessageAttribute("Microsoft.Design", "CA1062:ValidateArgumentsOfPublicMethods")]
public override void ProcessChangeBatch (
ConflictResolutionPolicy resolutionPolicy,
ChangeBatch sourceChanges,
Object changeDataRetriever,
SyncCallbacks syncCallbacks,
SyncSessionStatistics sessionStatistics
)
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1062:ValidateArgumentsOfPublicMethods")]
public:
virtual void ProcessChangeBatch (
ConflictResolutionPolicy resolutionPolicy,
ChangeBatch^ sourceChanges,
Object^ changeDataRetriever,
SyncCallbacks^ syncCallbacks,
SyncSessionStatistics^ sessionStatistics
) override
/** @attribute SuppressMessageAttribute("Microsoft.Design", "CA1062:ValidateArgumentsOfPublicMethods") */
public void ProcessChangeBatch (
ConflictResolutionPolicy resolutionPolicy,
ChangeBatch sourceChanges,
Object changeDataRetriever,
SyncCallbacks syncCallbacks,
SyncSessionStatistics sessionStatistics
)
SuppressMessageAttribute("Microsoft.Design", "CA1062:ValidateArgumentsOfPublicMethods")
public override function ProcessChangeBatch (
resolutionPolicy : ConflictResolutionPolicy,
sourceChanges : ChangeBatch,
changeDataRetriever : Object,
syncCallbacks : SyncCallbacks,
sessionStatistics : SyncSessionStatistics
)
參數
- resolutionPolicy
定義如何解決衝突的 ConflictResolutionPolicy 列舉值。
- sourceChanges
包含要處理之變更的 ChangeBatch 物件。
- changeDataRetriever
將用來擷取已修改資料的物件。
- syncCallbacks
SyncCallbacks 物件,此物件表示用來分派同步處理事件的應用程式回呼。
- sessionStatistics
SyncSessionStatistics 物件,此物件包含已套用或無法套用之變更的相關資訊。
請參閱
參考
RelationalSyncProvider 類別
RelationalSyncProvider 成員
Microsoft.Synchronization.Data 命名空間