共用方式為


RelationalSyncProvider.BatchApplied 事件

在每個變更批次都已經套用至目的地之後發生。

此類別與 CLS 不相容。  

命名空間: Microsoft.Synchronization.Data
組件: Microsoft.Synchronization.Data (在 microsoft.synchronization.data.dll)

語法

'宣告
Public Event BatchApplied As EventHandler(Of DbBatchAppliedEventArgs)
'用途
Dim instance As RelationalSyncProvider
Dim handler As EventHandler(Of DbBatchAppliedEventArgs)

AddHandler instance.BatchApplied, handler
public event EventHandler<DbBatchAppliedEventArgs> BatchApplied
public:
event EventHandler<DbBatchAppliedEventArgs^>^ BatchApplied {
    void add (EventHandler<DbBatchAppliedEventArgs^>^ value);
    void remove (EventHandler<DbBatchAppliedEventArgs^>^ value);
}
/** @event */
public void add_BatchApplied (EventHandler<DbBatchAppliedEventArgs> value)

/** @event */
public void remove_BatchApplied (EventHandler<DbBatchAppliedEventArgs> value)
JScript supports the use of events, but not the declaration of new ones.

備註

根據預設,Sync Framework 會在單一 DataSet 物件中傳遞每一個節點的變更。BatchApplied 事件只會在以批次傳遞變更時引發。如需詳細資訊,請參閱 HOW TO:以批次傳遞變更 (SQL Server)

請參閱

參考

RelationalSyncProvider 類別
RelationalSyncProvider 成員
Microsoft.Synchronization.Data 命名空間