UserNotificationListener.GetNotificationsAsync(NotificationKinds) Method

Definition

Asynchronously retrieves notifications that match the specified notification kind.

public:
 virtual IAsyncOperation<IVectorView<UserNotification ^> ^> ^ GetNotificationsAsync(NotificationKinds kinds) = GetNotificationsAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<UserNotification>> GetNotificationsAsync(NotificationKinds const& kinds);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<UserNotification>> GetNotificationsAsync(NotificationKinds kinds);
function getNotificationsAsync(kinds)
Public Function GetNotificationsAsync (kinds As NotificationKinds) As IAsyncOperation(Of IReadOnlyList(Of UserNotification))

Parameters

kinds
NotificationKinds

The type of notification to retrieve.

Returns

A collection of notifications of the specified type.

Attributes

Applies to