The RegisteredSubscribers collection contains RegisteredSubscriber objects that reference instances of Microsoft® SQL Server™ maintained as registry entries. These objects are visible to replication as targets for Publisher-originated (push) subscriptions.
SQL Server replication enhances the registry-maintained lists of instances of SQL Server by associating replication components, such as schedules and security, with registry-listed instances. SQL-DMO makes this association visible through the RegisteredSubscriber object and RegisteredSubscribers collection.
For more information about registry-maintained lists of instances of SQL Server, see RegisteredServer Object.
With the RegisteredSubscribers collection, you can:
For more information about configuring push-subscription capable instances using the RegisteredSubscriber object and RegisteredSubscribers collection, see RegisteredSubscriber Object.
To disable a push subscription to a registered instance
When using the Item or Remove method, the RegisteredSubscribers collection supports member identification using either name or ordinal reference syntax. For example:
Set oRegisteredSubscriber = oPublisher.RegisteredSubscribers("LONDON2")
Or:
Set oRegisteredSubscriber = oPublisher.RegisteredSubscribers(2)