AppNotificationManager.RemoveByIdAsync(UInt32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Asynchronously removes the app notification with the specified ID from Notification Center (called Action Center in Windows 10).
Note
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.
public:
virtual IAsyncAction ^ RemoveByIdAsync(unsigned int notificationId) = RemoveByIdAsync;
IAsyncAction RemoveByIdAsync(uint32_t const& notificationId);
public IAsyncAction RemoveByIdAsync(uint notificationId);
function removeByIdAsync(notificationId)
Public Function RemoveByIdAsync (notificationId As UInteger) As IAsyncAction
Parameters
- notificationId
-
UInt32
unsigned int
uint32_t
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.