AppNotificationManager.RemoveByTagAsync(String) Méthode

Définition

Supprime de manière asynchrone toutes les notifications d’application pour l’application qui ont l’identificateur de balise spécifié du Centre de notifications (appelé Centre de notifications dans Windows 10).

Note

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 de détails, consultez Dépendances sur des packages MSIX supplémentaires.

public:
 virtual IAsyncAction ^ RemoveByTagAsync(Platform::String ^ tag) = RemoveByTagAsync;
IAsyncAction RemoveByTagAsync(winrt::hstring const& tag);
public IAsyncAction RemoveByTagAsync(string tag);
function removeByTagAsync(tag)
Public Function RemoveByTagAsync (tag As String) As IAsyncAction

Paramètres

tag
String

Platform::String

winrt::hstring

Identificateur unique de l’ensemble de notifications à supprimer, accessible avec la propriété Tag.

Retours

Action asynchrone.

S’applique à