PublicationMonitor Constructors

Definition

Creates a new instance of the PublicationMonitor class.

Overloads

PublicationMonitor()

Creates a new instance of the PublicationMonitor class.

PublicationMonitor(String, String, String, String, ServerConnection)

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

PublicationMonitor()

Creates a new instance of the PublicationMonitor class.

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

Remarks

The default constructor initializes any fields to their default values.

Applies to

PublicationMonitor(String, String, String, String, ServerConnection)

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

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

Parameters

name
String

A String value that specifies the name of the publication to monitor.

distributionDBName
String

A String value that specifies the name of the publication to monitor.

publisherName
String

A String value that specifies the name of the publication to monitor.

publicationDBName
String

A String value that specifies the name of the publication to monitor.

connectionContext
ServerConnection

A ServerConnection object that specifies the connection to the Distributor.

Applies to