Share via


AppNotificationManager.RemoveByTagAsync(String) Method

Definition

Asynchronously removes all app notifications for the app that have the specified tag identifier 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 ^ 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

Parameters

tag
String

Platform::String

winrt::hstring

The unique identifier for the set of notifications to be removed, accessed with the Tag property.

Returns

An asynchronous action.

Applies to