Windows phone 8 wp8:从ScheduledActionService中删除所有

Windows phone 8 wp8:从ScheduledActionService中删除所有,windows-phone-8,alarm,scheduledactionservice,Windows Phone 8,Alarm,Scheduledactionservice,如何从服务器中删除所有警报 ScheduledActionService.remove()方法需要一个名称,并且不需要find()List notifications=ScheduledActionService.GetActions().ToList(); foreach(通知中的ScheduledNotification通知) { ScheduledActionService.Remove(notification.Name); } 我用ScheduledNotification替换了提醒,

如何从服务器中删除所有警报

ScheduledActionService.remove()
方法需要一个名称,并且不需要
find()

List notifications=ScheduledActionService.GetActions().ToList();
foreach(通知中的ScheduledNotification通知)
{
ScheduledActionService.Remove(notification.Name);
}

我用ScheduledNotification替换了提醒,因此它可以与提醒和警报一起工作。谢谢
List<ScheduledNotification> notifications = ScheduledActionService.GetActions<ScheduledNotification>().ToList();
foreach (ScheduledNotification notification in notifications)
{
    ScheduledActionService.Remove(notification.Name);
}