SqlCeReplication.BeginSynchronize Method (AsyncCallback, OnStartTableUpload, OnStartTableDownload, OnSynchronization, Object)

This type has a SecurityCriticalAttribute attribute, which restricts it to internal use by the .NET Framework for Silverlight class library. Application code that uses any member of this type throws a MethodAccessException.

Starts an asynchronous data synchronization operation. When the synchronization ends, the AsyncCallback delegates are called. During the synchronization, synchronization status reports are sent to the SyncStatusReport delegates.

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)

public IAsyncResult BeginSynchronize(
	AsyncCallback onSyncCompletion,
	OnStartTableUpload onStartTableUpload,
	OnStartTableDownload onStartTableDownload,
	OnSynchronization onSynchronization,
	Object state


Type: System.AsyncCallback
The AsyncCallback delegate that is implemented by the caller called at the end of synchronization.
Type: System.Data.SqlServerCe.OnStartTableUpload
A user-defined delegate to the event that fires at the start of uploading table changes to the server.
Type: System.Data.SqlServerCe.OnStartTableDownload
A user-defined delegate to the event that fires at the start of downloading table changes from the server.
Type: System.Data.SqlServerCe.OnSynchronization
A user-defined delegate that consumes the ongoing synchronization events that are reported during the reconciler work.
Type: System.Object
A user-defined object that is returned by the AsyncState property.

Return Value

Type: System.IAsyncResult
The IAsyncResult interface for the asynchronous operation that has been started by calling this function. You can use this interface for testing for completion, or waiting until synchronization ends.