ProcessChangeBatch 方法
在给定解决策略、源变更、变更数据检索器、回调以及统计信息参数的情况下,处理变更批。
命名空间: Microsoft.Synchronization.Data
程序集: Microsoft.Synchronization.Data(在 Microsoft.Synchronization.Data.dll 中)
语法
声明
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)
public override void ProcessChangeBatch(
ConflictResolutionPolicy resolutionPolicy,
ChangeBatch sourceChanges,
Object changeDataRetriever,
SyncCallbacks syncCallbacks,
SyncSessionStatistics sessionStatistics
)
public:
virtual void ProcessChangeBatch(
ConflictResolutionPolicy resolutionPolicy,
ChangeBatch^ sourceChanges,
Object^ changeDataRetriever,
SyncCallbacks^ syncCallbacks,
SyncSessionStatistics^ sessionStatistics
) override
abstract ProcessChangeBatch :
resolutionPolicy:ConflictResolutionPolicy *
sourceChanges:ChangeBatch *
changeDataRetriever:Object *
syncCallbacks:SyncCallbacks *
sessionStatistics:SyncSessionStatistics -> unit
override ProcessChangeBatch :
resolutionPolicy:ConflictResolutionPolicy *
sourceChanges:ChangeBatch *
changeDataRetriever:Object *
syncCallbacks:SyncCallbacks *
sessionStatistics:SyncSessionStatistics -> unit
public override function ProcessChangeBatch(
resolutionPolicy : ConflictResolutionPolicy,
sourceChanges : ChangeBatch,
changeDataRetriever : Object,
syncCallbacks : SyncCallbacks,
sessionStatistics : SyncSessionStatistics
)
参数
- resolutionPolicy
类型:Microsoft.Synchronization. . :: . .ConflictResolutionPolicy
定义如何解决冲突的 ConflictResolutionPolicy 枚举值。
- sourceChanges
类型:Microsoft.Synchronization. . :: . .ChangeBatch
包含要处理的变更的 ChangeBatch 对象。
- changeDataRetriever
类型:System. . :: . .Object
将用于检索已修改数据的对象。
- syncCallbacks
类型:Microsoft.Synchronization. . :: . .SyncCallbacks
表示用于调度同步事件的应用程序回调的 SyncCallbacks 对象。
- sessionStatistics
类型:Microsoft.Synchronization. . :: . .SyncSessionStatistics
一个 SyncSessionStatistics 对象,该对象包含有关已应用以及无法应用的变更的信息。
异常
异常 | 条件 |
---|---|
ArgumentNullException | sourceChanges、changeDataRetriever、syncCallbacks 或 sessionStatistics 为 null Nothing nullptr unit null 引用(在 Visual Basic 中为 Nothing) 。 |
ObjectDisposedException | 此 RelationalSyncProvider 已释放。 |
DbSyncException | changeDataRetriever 无效。 |