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 2005 Compact Edition (SQL Server Compact Edition) 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 Edition database, confirms the Publisher Property (Replication), Publication Property (Replication), and Subscriber Property (Replication), and then invokes synchronization between the SQL Server Compact Edition subscriber and SQL Server publisher.

Terminate Method (Replication)

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

Cancel Method (Replication)

Cancels a currently-running synchronization.