Replication Object Methods

The following table lists and describes the methods that the Replication object supports.

Method Description

AddSubscription Method (Replication)

Creates a new subscription to an existing Microsoft SQL Server publication.

DropSubscription Method (Replication)

Drops the subscription to a SQL Server publication and optionally deletes the Microsoft SQL Server Compact 3.5 (SQL Server Compact 3.5) database from the device.

ReInitializeSubscription Method (Replication)

Marks a subscription for reinitialization.

Initialize Method (Replication)

Initializes merge replication.

Run Method (Replication)

Opens a connection to the SQL Server Compact 3.5 database, confirms the Publisher Property (Replication), Publication Property (Replication), and Subscriber Property (Replication), and then invokes synchronization between the SQL Server Compact 3.5 subscriber and SQL Server publisher.

Terminate Method (Replication)

Finishes merge replication and closes the connection to the SQL Server Compact 3.5 database.

Cancel Method (Replication)

Cancels a currently-running synchronization.