简体   繁体   中英

Windows 10 Universal App - Best way to store static application settings

I would like to store some configurable data (hosts, keys etc.) in my universal app. The data would be defined before running the app and never changed at runtime. What is the best way to achieve this? I've come across a similar question , but there must be some built-in mechanism.

  • Here you will find some info: Store and retrieve settings and other app data

  • If you want to have a file with settings that are known at compile time you can add a json or xml file in your solution and use it as a config file in code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM