Compartilhar via


Notification Constructor (String, String)

 

Initializes a new instance of the Notification class with the specified category and identifier.

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

Syntax

public Notification(
    string category,
    string id
)
public:
Notification(
    String^ category,
    String^ id
)
Public Sub New (
    category As String,
    id As String
)

Parameters

Remarks

You can subscribe to notifications by category, so a group of related notifications should all have the same Category and each notification must have a different Id.

Two notifications are considered equal if they have the same Category, Id, and the same Source. If you create a persistent notification, and then create another equivalent persistent notification (same Category and Id) by using the same Notifier object, the second notification replaces the first.

See Also

Notification Class
Microsoft.WindowsServerSolutions.Common.ProviderFramework.Notifications Namespace

Return to top