Udostępnij za pośrednictwem


PublisherMonitor Constructors

Definition

Creates a new instance of the PublisherMonitor class.

Overloads

PublisherMonitor()

Creates a new instance of the PublisherMonitor class.

PublisherMonitor(String, ServerConnection)

Creates a new instance of the PublisherMonitor class with the specified name and a connection to the Distributor.

PublisherMonitor()

Creates a new instance of the PublisherMonitor class.

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

Remarks

The default constructor initializes any fields to their default values.

Applies to

PublisherMonitor(String, ServerConnection)

Creates a new instance of the PublisherMonitor class with the specified name and a connection to the Distributor.

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

Parameters

name
String

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

connectionContext
ServerConnection

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

Applies to