Share via


RegisteredSubscriber Constructors

Definition

Creates a new instance of the RegisteredSubscriber class.

Overloads

RegisteredSubscriber()

Creates a new instance of the RegisteredSubscriber class.

RegisteredSubscriber(String, ServerConnection)

Creates a new instance of the RegisteredSubscriber class with the specified name and specified connection to the Publisher.

RegisteredSubscriber(String, ServerConnection, String, String)

Creates a new instance of the RegisteredSubscriber class with the specified name, the specified connection to the distribution Publisher, the specified distribution Publisher, and the distribution database.

RegisteredSubscriber()

Creates a new instance of the RegisteredSubscriber class.

public:
 RegisteredSubscriber();
public RegisteredSubscriber ();
Public Sub New ()

Remarks

The default constructor initializes any fields to their default values.

Applies to

RegisteredSubscriber(String, ServerConnection)

Creates a new instance of the RegisteredSubscriber class with the specified name and specified connection to the Publisher.

public:
 RegisteredSubscriber(System::String ^ name, Microsoft::SqlServer::Management::Common::ServerConnection ^ connectionContext);
public RegisteredSubscriber (string name, Microsoft.SqlServer.Management.Common.ServerConnection connectionContext);
new Microsoft.SqlServer.Replication.RegisteredSubscriber : string * Microsoft.SqlServer.Management.Common.ServerConnection -> Microsoft.SqlServer.Replication.RegisteredSubscriber
Public Sub New (name As String, connectionContext As ServerConnection)

Parameters

name
String

A String value that specifies the name of the registered Subscriber.

connectionContext
ServerConnection

A ServerConnection object value that specifies the connection context used to establish a connection to the Publisher.

Applies to

RegisteredSubscriber(String, ServerConnection, String, String)

Creates a new instance of the RegisteredSubscriber class with the specified name, the specified connection to the distribution Publisher, the specified distribution Publisher, and the distribution database.

public:
 RegisteredSubscriber(System::String ^ name, Microsoft::SqlServer::Management::Common::ServerConnection ^ connectionContext, System::String ^ distPublisher, System::String ^ distributionDB);
public RegisteredSubscriber (string name, Microsoft.SqlServer.Management.Common.ServerConnection connectionContext, string distPublisher, string distributionDB);
new Microsoft.SqlServer.Replication.RegisteredSubscriber : string * Microsoft.SqlServer.Management.Common.ServerConnection * string * string -> Microsoft.SqlServer.Replication.RegisteredSubscriber
Public Sub New (name As String, connectionContext As ServerConnection, distPublisher As String, distributionDB As String)

Parameters

name
String

A String value that specifies the name of the registered Subscriber.

connectionContext
ServerConnection

A ServerConnection object value that specifies the connection context used to establish a connection to the Publisher.

distPublisher
String

A String value that specifies the name of the Publisher.

distributionDB
String

A String value that specifies the name of the distribution database.

Remarks

This constructor is used for registering a Subscriber with a distribution Publisher.

Applies to