Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要前台应用程序中的一个值,以便在后台任务中使用的查询中使用。此值存储在 roamingSettings 中,并通过提示用户一次进入 roamingSettings。
我可以以某种方式将该值从前台应用程序传递给定期后台任务吗?
您可以从后台任务中读取应用程序设置,因此只需存储您想要的参数(ApplicationSettings、IsolatedStorage 文件等)并从后台任务中读取它。