MergePullSubscription Constructor (String, String, String, String, ServerConnection, Boolean)

Creates a new instance of the MergePullSubscription class with the specified database, Publisher, publication, Subscriber connection, and whether the agent job is created.

Namespace: Microsoft.SqlServer.Replication
Assembly : Microsoft.SqlServer.Rmo (in microsoft.sqlserver.rmo.dll)

Syntax

'Declaration
Public Sub New ( _
    subscriptionDBName As String, _
    publisherName As String, _
    publicationDBName As String, _
    publicationName As String, _
    subscriberConnectionContext As ServerConnection, _
    createMergeAgentByDefault As Boolean _
)
public MergePullSubscription (
    string subscriptionDBName,
    string publisherName,
    string publicationDBName,
    string publicationName,
    ServerConnection subscriberConnectionContext,
    bool createMergeAgentByDefault
)
public:
MergePullSubscription (
    String^ subscriptionDBName, 
    String^ publisherName, 
    String^ publicationDBName, 
    String^ publicationName, 
    ServerConnection^ subscriberConnectionContext, 
    bool createMergeAgentByDefault
)
public MergePullSubscription (
    String subscriptionDBName, 
    String publisherName, 
    String publicationDBName, 
    String publicationName, 
    ServerConnection subscriberConnectionContext, 
    boolean createMergeAgentByDefault
)
public function MergePullSubscription (
    subscriptionDBName : String, 
    publisherName : String, 
    publicationDBName : String, 
    publicationName : String, 
    subscriberConnectionContext : ServerConnection, 
    createMergeAgentByDefault : boolean
)

Parameter

  • subscriptionDBName
    A String value that specifies the name of the subscription database.
  • publisherName
    A String value that specifies the name of the Publisher.
  • publicationDBName
    A String value that specifies the name of the publication database.
  • publicationName
    A String value that specifies the name of the publication.
  • subscriberConnectionContext
    A ServerConnection object that specifies the connection context required to establish a connection to the instance of Microsoft SQL Server that is the Subscriber.
  • createMergeAgentByDefault
    Specifies whether or not the agent job for the subscription is created when the subscription is created.

Hinweise

Specify a value of true for createMergeAgentByDefault when you need to schedule synchronization, or when you need to synchronize the subscription from SQL Server Management Studio. Specify a value of false if the Replication Agent will always be started programmatically without using SQL Server Agent.

When you specify a value of false for createMergeAgentByDefault, the MergeSynchronizationAgent or TransSynchronizationAgent objects obtained from the SynchronizationAgent property will not have enough information to successfully synchronize the subscription. For more information, see Vorgehensweise: Synchronisieren eines Pullabonnements (RMO-Programmierung).

Plattformen

Entwicklungsplattformen

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Zielplattforme

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Siehe auch

Verweis

MergePullSubscription Class
MergePullSubscription Members
Microsoft.SqlServer.Replication Namespace