AppNotificationManager.RemoveByTagAndGroupAsync(String, String) 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 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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for