共用方式為


BeginSnapshotInitialization 事件

在 Sync Framework 判斷資料庫是需要在同步處理啟動之前初始化的快照集時發生。

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

語法

'宣告
Public Event BeginSnapshotInitialization As EventHandler(Of DbBeginSnapshotInitializationEventArgs)
'用途
Dim instance As SqlCeSyncProvider
Dim handler As EventHandler(Of DbBeginSnapshotInitializationEventArgs)

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

備註

每個範圍發生一次。

請參閱

參考

SqlCeSyncProvider類別

SqlCeSyncProvider 成員

Microsoft.Synchronization.Data.SqlServerCe 命名空間