DistributionPublication Constructors

Definition

Creates a new instance of the DistributionPublication class.

Overloads

DistributionPublication()

Creates a new instance of the DistributionPublication class.

DistributionPublication(String, String, String, String, ServerConnection)

Creates a new instance of the DistributionPublication class, with the required properties and with a connection to the Distributor.

DistributionPublication()

Creates a new instance of the DistributionPublication class.

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

Remarks

The default constructor initializes any fields to their default values.

Applies to

DistributionPublication(String, String, String, String, ServerConnection)

Creates a new instance of the DistributionPublication class, with the required properties and with a connection to the Distributor.

public:
 DistributionPublication(System::String ^ name, System::String ^ distributionDBName, System::String ^ publisherName, System::String ^ publicationDBName, Microsoft::SqlServer::Management::Common::ServerConnection ^ connectionContext);
public DistributionPublication (string name, string distributionDBName, string publisherName, string publicationDBName, Microsoft.SqlServer.Management.Common.ServerConnection connectionContext);
new Microsoft.SqlServer.Replication.DistributionPublication : string * string * string * string * Microsoft.SqlServer.Management.Common.ServerConnection -> Microsoft.SqlServer.Replication.DistributionPublication
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.

distributionDBName
String

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

publisherName
String

A String value that specifies the name of the Publisher.

publicationDBName
String

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

connectionContext
ServerConnection

A ServerConnection object that specifies the connection context for the Distributor connection.

Applies to