How do I remove all alarms from a ScheduledActionService?

ScheduledActionService.remove() method requires a name also does find()

有帮助吗?

解决方案

List<ScheduledNotification> notifications = ScheduledActionService.GetActions<ScheduledNotification>().ToList();
foreach (ScheduledNotification notification in notifications)
{
    ScheduledActionService.Remove(notification.Name);
}
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top