Partager via


AppNotificationManager.RemoveByIdAsync(UInt32) Méthode

Définition

Supprime de manière asynchrone la notification d’application avec l’ID spécifié du Centre de notifications (appelé Centre de notifications dans Windows 10).

Notes

La classe AppNotificationManager a une dépendance sur le package Singleton. En raison de cette dépendance, il existe certaines considérations à prendre en compte si vous appelez ces API à partir d’une application autonome. Pour plus d’informations et des détails, consultez Dépendances sur des packages MSIX supplémentaires.

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

Paramètres

notificationId
UInt32

unsigned int

uint32_t

Identificateur unique de la notification d’application à supprimer. L’ID est défini par la plateforme et est accessible avec la propriété Id .

Retours

Action asynchrone.

S’applique à