ReplicationServer.EnumSubscriberSubscriptions 方法
Returns the subscriptions on a Subscriber server.
命名空間: Microsoft.SqlServer.Replication
組件: Microsoft.SqlServer.Rmo (在 Microsoft.SqlServer.Rmo.dll 中)
語法
'宣告
Public Function EnumSubscriberSubscriptions ( _
databaseName As String, _
subscriptionType As Integer _
) As ArrayList
'用途
Dim instance As ReplicationServer
Dim databaseName As String
Dim subscriptionType As Integer
Dim returnValue As ArrayList
returnValue = instance.EnumSubscriberSubscriptions(databaseName, _
subscriptionType)
public ArrayList EnumSubscriberSubscriptions(
string databaseName,
int subscriptionType
)
public:
ArrayList^ EnumSubscriberSubscriptions(
String^ databaseName,
int subscriptionType
)
member EnumSubscriberSubscriptions :
databaseName:string *
subscriptionType:int -> ArrayList
public function EnumSubscriberSubscriptions(
databaseName : String,
subscriptionType : int
) : ArrayList
參數
- databaseName
型別:System.String
A String value that specifies the database name from which the subscriptions are enumerated. Use a nullnull 參考 (在 Visual Basic 中為 Nothing) value to enumerate subscriptions in all databases on the Subscriber.
- subscriptionType
型別:System.Int32
An integer value that specifies the subscription type for the returned subscription:Push Pull and anonymous Both
傳回值
型別:System.Collections.ArrayList
An ArrayList of SubscriberSubscription objects.
備註
The structure holds limited information about the subscription.
The EnumSubscriberSubscriptions method can only be called by members of the db_owner fixed database role on the subscription database.