MergePublication 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 MergePublication class.
Overloads
MergePublication() |
Creates a new instance of the MergePublication class. |
MergePublication(String, String, ServerConnection) |
Initializes a new instance of the MergePublication class with the specified name, database, and connection to the Publisher. |
MergePublication(String, String, ServerConnection, Boolean) |
Creates an instance of the MergePublication class, specifying whether the Snapshot Agent job should be created by default. |
Remarks
Updated text: 17 July 2006
The following table shows the default property values for a new instance of MergePublication. Any properties that are not explicitly enumerated in this table are initialized to a null
value.
1 The FTP (file transfer protocol) port is used only when you transfer snapshots by using FTP. For more information, see Transfer Snapshots Through FTP.
MergePublication()
Creates a new instance of the MergePublication class.
public:
MergePublication();
public MergePublication ();
Public Sub New ()
Remarks
The default constructor initializes any fields to their default values.
Applies to
MergePublication(String, String, ServerConnection)
Initializes a new instance of the MergePublication class with the specified name, database, and connection to the Publisher.
public:
MergePublication(System::String ^ name, System::String ^ databaseName, Microsoft::SqlServer::Management::Common::ServerConnection ^ connectionContext);
public MergePublication (string name, string databaseName, Microsoft.SqlServer.Management.Common.ServerConnection connectionContext);
new Microsoft.SqlServer.Replication.MergePublication : string * string * Microsoft.SqlServer.Management.Common.ServerConnection -> Microsoft.SqlServer.Replication.MergePublication
Public Sub New (name As String, databaseName As String, connectionContext As ServerConnection)
Parameters
- name
- String
The name of the merge publication.
- databaseName
- String
The name of the database.
- connectionContext
- ServerConnection
The connection context required to establish a connection to the instance of MicrosoftSQL Server.
See also
Applies to
MergePublication(String, String, ServerConnection, Boolean)
Creates an instance of the MergePublication class, specifying whether the Snapshot Agent job should be created by default.
public:
MergePublication(System::String ^ name, System::String ^ databaseName, Microsoft::SqlServer::Management::Common::ServerConnection ^ connectionContext, bool createSnapshotAgentByDefault);
public MergePublication (string name, string databaseName, Microsoft.SqlServer.Management.Common.ServerConnection connectionContext, bool createSnapshotAgentByDefault);
new Microsoft.SqlServer.Replication.MergePublication : string * string * Microsoft.SqlServer.Management.Common.ServerConnection * bool -> Microsoft.SqlServer.Replication.MergePublication
Public Sub New (name As String, databaseName As String, connectionContext As ServerConnection, createSnapshotAgentByDefault As Boolean)
Parameters
- name
- String
The name of the merge publication.
- databaseName
- String
The name of the database.
- connectionContext
- ServerConnection
The connection context required to establish a connection to the instance of MicrosoftSQL Server.
- createSnapshotAgentByDefault
- Boolean
true
to create the Snapshot Agent job for the publication; false
to not create the Snapshot Agent job for the publication and the Snapshot Agent must be run manually to generate the initial snapshot.