Share via


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)

Syntax

'Declaration
Public Sub InitializeSnapshot ( _
    snapshotConn As SqlCeConnection _
)
'Usage
Dim instance As SqlCeSyncStoreSnapshotInitialization
Dim snapshotConn As SqlCeConnection

instance.InitializeSnapshot(snapshotConn)
public void InitializeSnapshot(
    SqlCeConnection snapshotConn
)
public:
void InitializeSnapshot(
    SqlCeConnection^ snapshotConn
)
member InitializeSnapshot : 
        snapshotConn:SqlCeConnection -> unit 
public function InitializeSnapshot(
    snapshotConn : SqlCeConnection
)

Parameters

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

Exceptions

Exception Condition
ArgumentNullException

snapshotConn is a null reference (Nothing in Visual Basic).

Remarks

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.

See Also

Reference

SqlCeSyncStoreSnapshotInitialization Class

Microsoft.Synchronization.Data.SqlServerCe Namespace