質問

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