如何从计划操作服务中删除所有警报?
ScheduledActionService.remove()
方法需要一个名称也find()
List<ScheduledNotification> notifications = ScheduledActionService.GetActions<ScheduledNotification>().ToList();
foreach (ScheduledNotification notification in notifications)
{
ScheduledActionService.Remove(notification.Name);
}