共用方式為


SqlCeReplication.BeginSynchronize 方法 (AsyncCallback, OnStartTableUpload, OnStartTableDownload, OnSynchronization, Object)

此型別具有 SecurityCriticalAttribute 屬性,它會限制為由 .NET Framework for Silverlight 類別程式庫內部使用。使用此型別之任何成員的應用程式碼會擲回 MethodAccessException。

[安全性關鍵]

啟動非同步資料的同步處理作業。當同步處理結束時,將呼叫 AsyncCallback 委派。在同步處理期間,同步處理狀態報告會傳送至 SyncStatusReport 委派。

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

語法

'宣告
Public Function BeginSynchronize ( _
    onSyncCompletion As AsyncCallback, _
    onStartTableUpload As OnStartTableUpload, _
    onStartTableDownload As OnStartTableDownload, _
    onSynchronization As OnSynchronization, _
    state As Object _
) As IAsyncResult
'用途
Dim instance As SqlCeReplication
Dim onSyncCompletion As AsyncCallback
Dim onStartTableUpload As OnStartTableUpload
Dim onStartTableDownload As OnStartTableDownload
Dim onSynchronization As OnSynchronization
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = instance.BeginSynchronize(onSyncCompletion, _
    onStartTableUpload, onStartTableDownload, _
    onSynchronization, state)
public IAsyncResult BeginSynchronize(
    AsyncCallback onSyncCompletion,
    OnStartTableUpload onStartTableUpload,
    OnStartTableDownload onStartTableDownload,
    OnSynchronization onSynchronization,
    Object state
)
public:
IAsyncResult^ BeginSynchronize(
    AsyncCallback^ onSyncCompletion, 
    OnStartTableUpload^ onStartTableUpload, 
    OnStartTableDownload^ onStartTableDownload, 
    OnSynchronization^ onSynchronization, 
    Object^ state
)
member BeginSynchronize : 
        onSyncCompletion:AsyncCallback * 
        onStartTableUpload:OnStartTableUpload * 
        onStartTableDownload:OnStartTableDownload * 
        onSynchronization:OnSynchronization * 
        state:Object -> IAsyncResult 
public function BeginSynchronize(
    onSyncCompletion : AsyncCallback, 
    onStartTableUpload : OnStartTableUpload, 
    onStartTableDownload : OnStartTableDownload, 
    onSynchronization : OnSynchronization, 
    state : Object
) : IAsyncResult

參數

傳回值

型別:System.IAsyncResult
非同步作業的 IAsyncResult 介面,已透過呼叫這個函數來啟動。您可以使用這個介面,測試同步處理是否完成,或是等候同步處理結束。

請參閱

參考

SqlCeReplication 類別

BeginSynchronize 多載

System.Data.SqlServerCe 命名空間