Application configuration files for Windows Universal app

假如想象 提交于 2019-12-11 03:57:48

问题


I have developed a Windows 8.1 Universal app for tablets and phones.

Is there any equivalent of App.config file what we used to have in desktop applications in win 8.1 tablets and phones ?

Searching over the net revealed nothing.


回答1:


No direct equivalent, you need to create something similar by yourself.




回答2:


Try to use ApplicationData.Current.LocalSettings in Windows.Storage namespace. Please refer to: Loading and saving settings



来源:https://stackoverflow.com/questions/30730825/application-configuration-files-for-windows-universal-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!