AppNotificationManager.RemoveByTagAndGroupAsync(String, String) 方法

定义

从操作中心异步删除具有指定组和标记标识符的应用的所有应用通知。

注意

AppNotificationManager 类依赖于 Singleton 包。 由于这种依赖关系,如果你从 独立应用调用这些 API,需要注意一些注意事项。 有关详细信息和详细信息,请参阅 其他 MSIX 包的依赖项

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

参数

tag
String

Platform::String

winrt::hstring

要从指定组中删除的通知集的唯一标识符,使用 Tag 属性进行访问。

group
String

Platform::String

winrt::hstring

要从中删除通知的应用通知组的唯一标识符,使用 Group 属性进行访问。

返回

异步操作。

注解

标记参数都必须是非空字符串。

适用于