Compartilhar via


ReadOnlyObservableNotificationCollection.Create Method (Boolean, String[])

 

Creates a subscription to receive persistent notifications through a ReadOnlyObservableNotificationCollection object. The subscription can be specified to receive notifications from the Notifications Provider on the server or the local computer. The subscription can also be filtered with a list of categories.

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

Syntax

public static ReadOnlyObservableNotificationCollection Create(
    bool connectToServer,
    params string[] filterCategories
)
public:
static ReadOnlyObservableNotificationCollection^ Create(
    bool connectToServer,
    ... array<String^>^ filterCategories
)
Public Shared Function Create (
    connectToServer As Boolean,
    ParamArray filterCategories As String()
) As ReadOnlyObservableNotificationCollection

Parameters

  • connectToServer
    Type: System.Boolean

    true if the connection is made to the Notifications Provider on the server; otherwise, false.

  • filterCategories
    Type: System.String[]

    The list of categories to be used for filtering notifications.

Return Value

Type: Microsoft.WindowsServerSolutions.Common.ProviderFramework.Notifications.ReadOnlyObservableNotificationCollection

An instance of ReadOnlyObservableNotificationCollection.

See Also

Create Overload
ReadOnlyObservableNotificationCollection Class
Microsoft.WindowsServerSolutions.Common.ProviderFramework.Notifications Namespace

Return to top