What is the Windows RT / Windows Store App answer to App.config?

后端 未结 4 981
说谎
说谎 2020-12-31 00:20

What is the best way to go about reading and writing simple configuration data like we used to use App.config and Web.config available thr

4条回答
  •  被撕碎了的回忆
    2020-12-31 00:47

    In addition to the technical answers above its important to understand why there is no config file for these apps.

    WinRT/Windows store apps are client applications so unlike your ASP.NET applications that run on the server and require admin configuration changes, end users are not expected to tinker with these changes (SQL connection, timeouts, appSettings you name it) hence there is no need for such a config file for these apps,

    Hope it makes sense

提交回复
热议问题