Udostępnij za pośrednictwem


Konstruktor MergePublication (String, String, ServerConnection, Boolean)

Tworzy wystąpienie MergePublication klasy, określając, czy należy utworzyć zadanie agenta migawki domyślnie

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 MergePublication(name, databaseName, _
    connectionContext, createSnapshotAgentByDefault)
public MergePublication(
    string name,
    string databaseName,
    ServerConnection connectionContext,
    bool createSnapshotAgentByDefault
)
public:
MergePublication(
    String^ name, 
    String^ databaseName, 
    ServerConnection^ connectionContext, 
    bool createSnapshotAgentByDefault
)
new : 
        name:string * 
        databaseName:string * 
        connectionContext:ServerConnection * 
        createSnapshotAgentByDefault:bool -> MergePublication
public function MergePublication(
    name : String, 
    databaseName : String, 
    connectionContext : ServerConnection, 
    createSnapshotAgentByDefault : boolean
)

Parametry

  • name
    Typ: System.String
    A String wartość, która określa nazwę publikacja korespondencji seryjnej.
  • createSnapshotAgentByDefault
    Typ: System.Boolean
    A Boolean wartości.Jeśli true, tworzony jest zadanie agenta migawkę w publikacja.Jeśli ma wartość FAŁSZ, zadanie agenta migawkę w publikacja nie zostanie utworzone i agenta migawki należy uruchomić ręcznie wygenerować migawka początkowa.