0

如何从ScheduledActionService中删除所有警报?

ScheduledActionService.remove()方法需要一个名字也可以find()

4

1 回答 1

1
List<ScheduledNotification> notifications = ScheduledActionService.GetActions<ScheduledNotification>().ToList();
foreach (ScheduledNotification notification in notifications)
{
    ScheduledActionService.Remove(notification.Name);
}
于 2014-02-19T15:20:49.600 回答