SyncAgent.Synchronize Method
SQL Server 2005
Synchronizes data between the local and remote data stores.
Namespace: Microsoft.Synchronization
Assembly: Microsoft.Synchronization.Data (in microsoft.synchronization.data.dll)
Assembly: Microsoft.Synchronization.Data (in microsoft.synchronization.data.dll)
The following code examples call the Synchronize method of a class that derives from SyncAgent, and then write information to the console. To view this code in the context of a complete example, see Getting Started: A Synchronization Services Application.
SampleSyncAgent sampleSyncAgent = new SampleSyncAgent();
SyncStatistics syncStatistics = sampleSyncAgent.Synchronize();
Console.WriteLine("Start Time: " + syncStatistics.SyncStartTime); Console.WriteLine("Total Changes Downloaded: " + syncStatistics.TotalChangesDownloaded); Console.WriteLine("Complete Time: " + syncStatistics.SyncCompleteTime); Console.WriteLine(String.Empty);
Console.WriteLine("Start Time: " & syncStatistics.SyncStartTime) Console.WriteLine("Total Changes Downloaded: " & syncStatistics.TotalChangesDownloaded) Console.WriteLine("Complete Time: " & syncStatistics.SyncCompleteTime) Console.WriteLine(String.Empty)
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements (Synchronization Services).Target Platforms
Show: