Udostępnij za pośrednictwem


ReplicationTable Constructors

Definition

Creates a new instance of the ReplicationTable class.

Overloads

ReplicationTable()

Creates a new instance of the ReplicationTable class.

ReplicationTable(String, String, String, ServerConnection)

Creates a new instance of the ReplicationTable class with the specified name and owner, on the specified database, and with the specified connection to an instance of Microsoft SQL Server.

ReplicationTable()

Creates a new instance of the ReplicationTable class.

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

Remarks

The default constructor initializes any fields to their default values.

Applies to

ReplicationTable(String, String, String, ServerConnection)

Creates a new instance of the ReplicationTable class with the specified name and owner, on the specified database, and with the specified connection to an instance of Microsoft SQL Server.

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

Parameters

name
String

The name of the database.

ownerName
String

The owner of the database. If no value is specified, then the db_owner user is assumed.

databaseName
String

The database to which the replication table belongs.

connectionContext
ServerConnection

The connection context that is used to establish a connection with the instance of SQL Server.

Applies to