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

后端 未结 4 966
说谎
说谎 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条回答
  •  旧时难觅i
    2020-12-31 00:59

    LocalSettings

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

    OR

    RoamingSettings

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

    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.

提交回复
热议问题