UserNotificationListener.RequestAccessAsync Method

Definition

Requests the user's permission to manage notifications.

public:
 virtual IAsyncOperation<UserNotificationListenerAccessStatus> ^ RequestAccessAsync() = RequestAccessAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<UserNotificationListenerAccessStatus> RequestAccessAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<UserNotificationListenerAccessStatus> RequestAccessAsync();
function requestAccessAsync()
Public Function RequestAccessAsync () As IAsyncOperation(Of UserNotificationListenerAccessStatus)

Returns

A value that specifies whether the user chose to provide access to notification.

Attributes

Applies to