共用方式為


AlternateSynchronizationPartner 建構函式 (String, String, String, String, String)

Creates an instance of the AlternateSynchronizationPartner class with all required properties.

命名空間:  Microsoft.SqlServer.Replication
組件:  Microsoft.SqlServer.Replication (在 Microsoft.SqlServer.Replication.dll 中)

語法

'宣告
Public Sub New ( _
    publisher As String, _
    publisherDatabase As String, _
    publication As String, _
    distributor As String, _
    friendlyName As String _
)
'用途
Dim publisher As String 
Dim publisherDatabase As String 
Dim publication As String 
Dim distributor As String 
Dim friendlyName As String 

Dim instance As New AlternateSynchronizationPartner(publisher, _
    publisherDatabase, publication, _
    distributor, friendlyName)
public AlternateSynchronizationPartner(
    string publisher,
    string publisherDatabase,
    string publication,
    string distributor,
    string friendlyName
)
public:
AlternateSynchronizationPartner(
    String^ publisher, 
    String^ publisherDatabase, 
    String^ publication, 
    String^ distributor, 
    String^ friendlyName
)
new : 
        publisher:string * 
        publisherDatabase:string * 
        publication:string * 
        distributor:string * 
        friendlyName:string -> AlternateSynchronizationPartner
public function AlternateSynchronizationPartner(
    publisher : String, 
    publisherDatabase : String, 
    publication : String, 
    distributor : String, 
    friendlyName : String
)

參數

  • publisher
    型別:System.String
    Name of the alternate Publisher.
  • publisherDatabase
    型別:System.String
    Name of the publication database.
  • friendlyName
    型別:System.String
    Friendly name for the association of Publisher, publication, and Distributor that makes up an alternate synchronization partner.

請參閱

參考

AlternateSynchronizationPartner 類別

AlternateSynchronizationPartner 多載

Microsoft.SqlServer.Replication 命名空間