Search code examples
windows-8windows-runtimewindows-store-apps

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


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?


Solution

  • 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.