In traditional .NET applications developers rely on App.config and Web.config (client and server respectively) to store configuration data that the app depends on during runtime. Developers specify their config info in the <appsettings> section and use ConfiguationManager to access that info.
For Windows Store apps there isn't an exact equivalent for app.config and web.config. However, there are several mechanisms inherent to the Windows Runtime that developers can leverage to accomplish the same functionality.
LOCAL SETTINGS – with this API you can get the application settings container in the local app data store.
You can find the all detail about Local Settings in MSDN.
ROAMING SETTINGS – with this API you can get the application settings container in the roadming app data store.
You can find the all detail about Roaming Settings in MSDN.
PACKAGE.APPXMANIFEST - You can access file resources in app files that you deliver as part of the app package.
Use the file APIs, such as Windows.Storage.StorageFolder.GetFileAsync,Windows.Storage.StorageFile.GetFileFromApplicationUriAsync and Windows.Storage.FileIO.ReadTextAsync to open and read a file in the local app data store.
LOAD DATA (XML, JASON) AT STARTUP – As a last resort you can HttpClient the configuration file on the fly when the application starts. This may be undesirable due to the connectivity dependency that isn't 100% guaranteed.
- Free Trial Azure
- Download Visual Studio Express 2012
- Download Developer Center VS 2012/Win8
- Signup 30-To-Launch Win8
- Download Windows Phone SDK
- Signup 30-To-Launch Phone
Oscars, Daytona 500, Seth MacFarlane, Putter ban, Fidel Castro, Erin Andrews, Streisand, Red carpet