SqlCeSyncStoreSnapshotInitialization::InitializeSnapshot Method

Updates metadata for a snapshot so that the snapshot can be used by a new synchronization node.

Namespace:  Microsoft.Synchronization.Data.SqlServerCe
Assembly:  Microsoft.Synchronization.Data.SqlServerCe (in Microsoft.Synchronization.Data.SqlServerCe.dll)

public:
void InitializeSnapshot(
	SqlCeConnection^ snapshotConn
)

Parameters

snapshotConn
Type: SqlCeConnection
A SqlCeConnection object that contains a connection to the database file that was generated by calling GenerateSnapshot.

ExceptionCondition
ArgumentNullException

snapshotConn is a nullptr.

When a snapshot is generated, it contains synchronization metadata that is specific to the database from which it was generated. The metadata must be updated before the new database can be synchronized. If InitializeSnapshot is not called, Sync Framework automatically updates metadata in the new database the first time that database is synchronized.

Show: