Managing Subscribers

The Subscriber and SubscriberEnumeration classes support adding, updating, and deleting subscriber information. These classes are provided by the Notification Services API, and can be found in the Microsoft.SqlServer.NotificationServices namespace.

A Subscriber object has properties that represent subscriber data, which can be passed to it from the subscription management interface. Using a Subscriber object, you can create, update, or delete a single subscriber record at a time.

A SubscriberEnumeration object represents the set of subscribers in a Notification Services instance. You select a specific subscriber record by supplying its subscriber ID to the indexer of a SubscriberEnumeration object, or you can step through all the subscribers in a Notification Services instance one at a time.

In This Section

Topic Description

Creating a Subscriber Object

Shows how to instantiate a subscriber object.

Adding a Subscriber Record

Shows how to add a subscriber to an instance of Notification Services.

Updating a Subscriber Record

Shows how to update an existing subscriber record.

Deleting a Subscriber Record

Shows how to delete a subscriber record.

Deleting Related Subscription Information

Shows how to delete all subscriptions for a subscriber.

Getting a Subscriber's Devices and Subscriptions

Shows how to return a subscriber's devices and subscriptions.

See Also

Concepts

Subscription Management API
Starting a Subscription Management Project

Other Resources

NSSubscriberView
Managing Subscriber Devices
Managing Subscription Data

Help and Information

Getting SQL Server 2005 Assistance