共用方式為


BatchSpooled 事件

在每個變更批次都已經寫入磁碟之後發生。

命名空間:  Microsoft.Synchronization.Data
組件:  Microsoft.Synchronization.Data (在 Microsoft.Synchronization.Data.dll 中)

語法

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

AddHandler instance.BatchSpooled, handler
public event EventHandler<DbBatchSpooledEventArgs> BatchSpooled
public:
 event EventHandler<DbBatchSpooledEventArgs^>^ BatchSpooled {
    void add (EventHandler<DbBatchSpooledEventArgs^>^ value);
    void remove (EventHandler<DbBatchSpooledEventArgs^>^ value);
}
member BatchSpooled : IEvent<EventHandler<DbBatchSpooledEventArgs>,
    DbBatchSpooledEventArgs>

備註

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

請參閱

參考

RelationalSyncProvider類別

RelationalSyncProvider 成員

Microsoft.Synchronization.Data 命名空間