Udostępnij za pośrednictwem


Konstruktor TransPublication (String, String, ServerConnection, Boolean)

Tworzy nowe wystąpienie TransPublication klasy z wymaganych właściwości i wskazuje, czy zadanie agenta migawki publikacja jest tworzona.

Przestrzeń nazw:  Microsoft.SqlServer.Replication
Zestaw:  Microsoft.SqlServer.Rmo (w Microsoft.SqlServer.Rmo.dll)

Składnia

'Deklaracja
Public Sub New ( _
    name As String, _
    databaseName As String, _
    connectionContext As ServerConnection, _
    createSnapshotAgentByDefault As Boolean _
)
'Użycie
Dim name As String
Dim databaseName As String
Dim connectionContext As ServerConnection
Dim createSnapshotAgentByDefault As Boolean

Dim instance As New TransPublication(name, databaseName, _
    connectionContext, createSnapshotAgentByDefault)
public TransPublication(
    string name,
    string databaseName,
    ServerConnection connectionContext,
    bool createSnapshotAgentByDefault
)
public:
TransPublication(
    String^ name, 
    String^ databaseName, 
    ServerConnection^ connectionContext, 
    bool createSnapshotAgentByDefault
)
new : 
        name:string * 
        databaseName:string * 
        connectionContext:ServerConnection * 
        createSnapshotAgentByDefault:bool -> TransPublication
public function TransPublication(
    name : String, 
    databaseName : String, 
    connectionContext : ServerConnection, 
    createSnapshotAgentByDefault : boolean
)

Parametry

  • databaseName
    Typ: System.String
    A String wartość, która określa nazwę baza danych publikacja.
  • createSnapshotAgentByDefault
    Typ: System.Boolean
    A Boolean wartość, która wskazuje, czy zadanie agenta migawki jest dodawane automatycznie podczas tworzenia publikacja.

Uwagi

Ten obszar nazw, klasy lub element członkowski jest obsługiwany tylko w wersja 2.0.NET Framework.