Share via


ReplicationServer.EnumSubscriberSubscriptions(String, Int32) Method

Definition

Returns the subscriptions on a Subscriber server.

public:
 System::Collections::ArrayList ^ EnumSubscriberSubscriptions(System::String ^ databaseName, int subscriptionType);
public System.Collections.ArrayList EnumSubscriberSubscriptions (string databaseName, int subscriptionType);
member this.EnumSubscriberSubscriptions : string * int -> System.Collections.ArrayList
Public Function EnumSubscriberSubscriptions (databaseName As String, subscriptionType As Integer) As ArrayList

Parameters

databaseName
String

A String value that specifies the database name from which the subscriptions are enumerated. Use a null value to enumerate subscriptions in all databases on the Subscriber.

subscriptionType
Int32

An integer value that specifies the subscription type for the returned subscription:

Push

Pull and anonymous

Both

Returns

An ArrayList of SubscriberSubscription objects.

Remarks

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.

Applies to