AppNotificationManager.RemoveByTagAndGroupAsync(String, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从操作中心异步删除具有指定组和标记标识符的应用的所有应用通知。
注意
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
参数
返回
异步操作。
注解
标记和组参数都必须是非空字符串。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈