NotificationSubscription Constructor (INotificationSubscriber, Boolean, String[])
Initializes a new instance of the NotificationSubscription class with the specified subscriber and categories. The notification can come from the Notifications Provider on the server or from the local computer.
Namespace: Microsoft.WindowsServerSolutions.Common.ProviderFramework.Notifications
Assembly: CoreProviders (in CoreProviders.dll)
Syntax
public NotificationSubscription(
INotificationSubscriber subscriber,
bool connectToServer,
params string[] categories
)
public:
NotificationSubscription(
INotificationSubscriber^ subscriber,
bool connectToServer,
... array<String^>^ categories
)
Public Sub New (
subscriber As INotificationSubscriber,
connectToServer As Boolean,
ParamArray categories As String()
)
Parameters
subscriber
Type: Microsoft.WindowsServerSolutions.Common.ProviderFramework.Notifications.INotificationSubscriberThe INotificationSubscriber object, which defines how the notifications are received.
connectToServer
Type: System.Booleantrue if notifications are received from the server; otherwise, false.
categories
Type: System.String[]The list of categories for the subscription.
See Also
NotificationSubscription Overload
NotificationSubscription Class
Microsoft.WindowsServerSolutions.Common.ProviderFramework.Notifications Namespace
Return to top