INotificationSubscriber Interface
Represents the operations that are used to receive notifications from the Notifications Provider.
Assembly: CoreProviders (in CoreProviders.dll)
| Name | Description | |
|---|---|---|
![]() | OnNotificationCleared(Notification^) | Informs the subscriber that a persistent Notification object has been cleared. |
![]() | OnNotificationRaised(Notification^) | Informs the subscriber of a new Notification object. |
You can use the following ways to subscribe to receive Notification objects:
Create a class that implements this interface, and then pass an instance of that class to the NotificationSubscription constructor.
Call one of the Create methods of ReadOnlyObservableNotificationCollection.
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.
Note |
|---|
The methods of INotificationSubscriber may be called on any thread. If you implement this interface, you must synchronize your code appropriately. |

