DistributionSubscription 构造函数 (String, String, String, String, String, String, ServerConnection)
Creates a new instance of the DistributionSubscription class, with the required properties and with a connection to the Distributor.
命名空间: Microsoft.SqlServer.Replication
程序集: Microsoft.SqlServer.Rmo(在 Microsoft.SqlServer.Rmo.dll 中)
语法
声明
Public Sub New ( _
distributionDBName As String, _
publisherName As String, _
publicationDBName As String, _
publicationName As String, _
subscriberName As String, _
subscriptionDBName As String, _
connectionContext As ServerConnection _
)
用法
Dim distributionDBName As String
Dim publisherName As String
Dim publicationDBName As String
Dim publicationName As String
Dim subscriberName As String
Dim subscriptionDBName As String
Dim connectionContext As ServerConnection
Dim instance As New DistributionSubscription(distributionDBName, _
publisherName, publicationDBName, _
publicationName, subscriberName, _
subscriptionDBName, connectionContext)
public DistributionSubscription(
string distributionDBName,
string publisherName,
string publicationDBName,
string publicationName,
string subscriberName,
string subscriptionDBName,
ServerConnection connectionContext
)
public:
DistributionSubscription(
String^ distributionDBName,
String^ publisherName,
String^ publicationDBName,
String^ publicationName,
String^ subscriberName,
String^ subscriptionDBName,
ServerConnection^ connectionContext
)
new :
distributionDBName:string *
publisherName:string *
publicationDBName:string *
publicationName:string *
subscriberName:string *
subscriptionDBName:string *
connectionContext:ServerConnection -> DistributionSubscription
public function DistributionSubscription(
distributionDBName : String,
publisherName : String,
publicationDBName : String,
publicationName : String,
subscriberName : String,
subscriptionDBName : String,
connectionContext : ServerConnection
)
参数
- distributionDBName
类型:System. . :: . .String
A String value that specifies the distribution database.
- publisherName
类型:System. . :: . .String
A String value that specifies the Publisher.
- publicationDBName
类型:System. . :: . .String
A String value that specifies the publication database.
- publicationName
类型:System. . :: . .String
A String value that specifies the publication name.
- subscriberName
类型:System. . :: . .String
A String value that specifies the Subscriber.
- subscriptionDBName
类型:System. . :: . .String
A String value that specifies the subscription database.
- connectionContext
类型:Microsoft.SqlServer.Management.Common. . :: . .ServerConnection
A ServerConnection object that represents the connection to the Distributor.
注释
This namespace, class, or member is supported only in version 2.0 of the .NET Framework.