INotificationSubscriber Interface

 

Represents the operations that are used to receive notifications from the Notifications Provider.

Namespace:   Microsoft.WindowsServerSolutions.Common.ProviderFramework.Notifications
Assembly:  CoreProviders (in CoreProviders.dll)

public interface class INotificationSubscriber

NameDescription
System_CAPS_pubmethodOnNotificationCleared(Notification^)

Informs the subscriber that a persistent Notification object has been cleared.

System_CAPS_pubmethodOnNotificationRaised(Notification^)

Informs the subscriber of a new Notification object.

You can use the following ways to subscribe to receive Notification objects:

If you use ReadOnlyObservableNotificationCollection to subscribe to Notifications, you only receive persistent Notification objects, because one-shot notifications should not be added to the collection. One-shot notifications do not have a lifetime, and would therefore never be removed from the collection.

System_CAPS_noteNote

The methods of INotificationSubscriber may be called on any thread. If you implement this interface, you must synchronize your code appropriately.

Return to top

Community Additions

ADD
Show: