StackOverflow 文档 uwp 教程 UWP 后台任务 检查任务是否已注册 检查任务是否已注册 Created: November-22, 2018 private bool IsTaskRegistered(string taskName) => BackgroundTaskRegistration.AllTasks.Any(x => x.Value.Name.Equals(taskName)); 手动触发任务任务