gpt4 book ai didi

c# - 如何结束 Windows 8 动态磁贴的定期更新

转载 作者:行者123 更新时间:2023-11-30 22:24:23 25 4
gpt4 key购买 nike

我看过很多关于如何在 Windows 8 中开始定期更新动态磁贴的示例,例如:

PeriodicUpdateRecurrence recurrence = PeriodicUpdateRecurrence.Hour;
System.Uri url = new System.Uri(polledUrl);
TileUpdateManager.CreateTileUpdaterForApplication().StartPeriodicUpdate(url, recurrence);

但是,您如何撤消此操作?我添加了一个应用程序设置来禁用动态磁贴更新,但我找不到代码来删除轮询。

最佳答案

我通过浏览 Intellisense 选项找到了答案。

要将图 block 恢复到默认状态,即不活动,请使用:

TileUpdateManager.CreateTileUpdaterForApplication().Clear();

希望这对某人有所帮助 - 在任何 Windows 开发人员中心快速入门中都不容易找到。

关于c# - 如何结束 Windows 8 动态磁贴的定期更新,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12790021/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com