AppNotificationManager.RemoveByTagAndGroupAsync(String, String) Method

Definition

Asynchronously removes all app notifications for the app that have the specified group and tag identifiers from Action Center.

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 ^ RemoveByTagAndGroupAsync(Platform::String ^ tag, Platform::String ^ group) = RemoveByTagAndGroupAsync;
IAsyncAction RemoveByTagAndGroupAsync(winrt::hstring const& tag, winrt::hstring const& group);
public IAsyncAction RemoveByTagAndGroupAsync(string tag, string group);
function removeByTagAndGroupAsync(tag, group)
Public Function RemoveByTagAndGroupAsync (tag As String, group As String) As IAsyncAction

Parameters

tag
String

Platform::String

winrt::hstring

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

group
String

Platform::String

winrt::hstring

The unique identifier for the app notification group from which notifications to be removed, accessed with the Group property.

Returns

An asynchronous action.

Remarks

Both the tag and group parameters must be non-empty strings.

Applies to