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

GONeale picture GONeale · Oct 13, 2012 · Viewed 7.5k times · Source

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?

Answer

Akinwale picture Akinwale · Oct 13, 2012

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.