TransPublication 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 TransPublication class.
Overloads
TransPublication() |
Creates a new instance of the TransPublication class. |
TransPublication(String, String, ServerConnection) |
Creates a new instance of the TransPublication class with the required properties. |
TransPublication(String, String, ServerConnection, Boolean) |
Creates a new instance of the TransPublication class with the required properties, and indicates whether the Snapshot Agent job for the publication is created. |
Remarks
Updated text: 17 July 2006
The following table shows the default property values for a new instance of TransPublication. 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 if you transfer snapshots by using FTP. For more information, see Transfer Snapshots Through FTP.
TransPublication()
Creates a new instance of the TransPublication class.
public:
TransPublication();
public TransPublication ();
Public Sub New ()
Applies to
TransPublication(String, String, ServerConnection)
Creates a new instance of the TransPublication class with the required properties.
public:
TransPublication(System::String ^ name, System::String ^ databaseName, Microsoft::SqlServer::Management::Common::ServerConnection ^ connectionContext);
public TransPublication (string name, string databaseName, Microsoft.SqlServer.Management.Common.ServerConnection connectionContext);
new Microsoft.SqlServer.Replication.TransPublication : string * string * Microsoft.SqlServer.Management.Common.ServerConnection -> Microsoft.SqlServer.Replication.TransPublication
Public Sub New (name As String, databaseName As String, connectionContext As ServerConnection)
Parameters
- connectionContext
- ServerConnection
A ServerConnection object that represents a connection to the Publisher or to the Distributor for a non-SQL Server Publisher.
Applies to
TransPublication(String, String, ServerConnection, Boolean)
Creates a new instance of the TransPublication class with the required properties, and indicates whether the Snapshot Agent job for the publication is created.
public:
TransPublication(System::String ^ name, System::String ^ databaseName, Microsoft::SqlServer::Management::Common::ServerConnection ^ connectionContext, bool createSnapshotAgentByDefault);
public TransPublication (string name, string databaseName, Microsoft.SqlServer.Management.Common.ServerConnection connectionContext, bool createSnapshotAgentByDefault);
new Microsoft.SqlServer.Replication.TransPublication : string * string * Microsoft.SqlServer.Management.Common.ServerConnection * bool -> Microsoft.SqlServer.Replication.TransPublication
Public Sub New (name As String, databaseName As String, connectionContext As ServerConnection, createSnapshotAgentByDefault As Boolean)
Parameters
- connectionContext
- ServerConnection
A ServerConnection object that represents a connection to the Publisher or to the Distributor for a non-SQL Server Publisher.
- createSnapshotAgentByDefault
- Boolean
A Boolean value that indicates whether the Snapshot Agent job is added automatically when the publication is created.