Metodo EnumSubscriberSubscriptions
Returns the subscriptions on a Subscriber server.
Spazio dei nomi Microsoft.SqlServer.Replication
Assembly: Microsoft.SqlServer.Rmo (in Microsoft.SqlServer.Rmo.dll)
Sintassi
'Dichiarazione
Public Function EnumSubscriberSubscriptions ( _
databaseName As String, _
subscriptionType As Integer _
) As ArrayList
'Utilizzo
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
Parametri
- databaseName
Tipo: System. . :: . .String
A String value that specifies the database name from which the subscriptions are enumerated. Use a nullNothingnullptrunitriferimento Null (Nothing in Visual Basic). value to enumerate subscriptions in all databases on the Subscriber.
- subscriptionType
Tipo: System. . :: . .Int32
An integer value that specifies the subscription type for the returned subscription:
Push
Pull and anonymous
Both
Valore restituito
Tipo: System.Collections. . :: . .ArrayList
An ArrayList of SubscriberSubscription objects.
Osservazioni
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.
This method is available with instances of SQL Server 2000 and SQL Server 2005.
This namespace, class, or member is supported only in version 2.0 of the .NET Framework.