Udostępnij za pośrednictwem


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
)
public void InitializeSnapshot (
    SqlCeConnection snapshotConn
)
public function InitializeSnapshot (
    snapshotConn : SqlCeConnection
)

Parameters

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

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
SqlCeSyncStoreSnapshotInitialization Members
Microsoft.Synchronization.Data.SqlServerCe Namespace