AppNotificationManager.RemoveByIdAsync(UInt32) Method

Definition

Asynchronously removes the app notification with the specified ID from Notification Center (called Action Center in Windows 10).

Napomena

The AppNotificationManager class has a dependency on the Singleton package. Because of that dependency, there are certain considerations to be aware of if you're calling these APIs from a self-contained app. For more info, and specifics, see Dependencies on additional MSIX packages.

C#
public IAsyncAction RemoveByIdAsync(uint notificationId);

Parameters

notificationId
UInt32

The unique identifier for the app notification to be removed. The ID is set by the platform and can be accessed with the Id property.

Returns

An asynchronous action.

Applies to

Proizvod Verzije
Windows App SDK 1.1, 1.2, 1.3, 1.4, 1.5, 1.6