RegisteredSubscriber Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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
- connectionContext
- ServerConnection
A ServerConnection object value that specifies the connection context used to establish a connection to the Publisher.
Remarks
This constructor is used for registering a Subscriber with a distribution Publisher.