如何从ScheduledActionService删除所有闹钟?
ScheduledActionService.remove()
方法要求名称也find()
答案 0 :(得分:1)
List<ScheduledNotification> notifications = ScheduledActionService.GetActions<ScheduledNotification>().ToList();
foreach (ScheduledNotification notification in notifications)
{
ScheduledActionService.Remove(notification.Name);
}