Windows RT/Windows Store App 对 App.config 的回答是什么? [英] What is the Windows RT / Windows Store App answer to App.config?

查看:30
本文介绍了Windows RT/Windows Store App 对 App.config 的回答是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

读取和写入简单配置数据的最佳方式是什么代码>之前,用于在您的 Windows 8/Windows RT/Windows 应用商店/Windows Modern UI 应用程序中使用?

What is the best way to go about reading and writing simple configuration data like we used to use App.config and Web.config <appsettings /> available through ConfigurationManager before, for use within your Windows 8 / Windows RT / Windows Store / Windows Modern UI App?

推荐答案

LocalSettings

http://msdn.microsoft.com/en-us/library/windows/apps/windows.storage.applicationdata.localsettings

漫游设置

http://msdn.microsoft.com/en-us/library/windows/apps/windows.storage.applicationdata.roamingsettings.aspx

主要区别在于 RoamingSettings 将保存到云端,因此可以跨不同设备传输相同的用户配置文件.LocalSettings 是特定于设备的.

The main difference is that RoamingSettings will be saved to the cloud and thus, can be transferred across different devices for the same user profile. LocalSettings is device-specific.

这篇关于Windows RT/Windows Store App 对 App.config 的回答是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆