在Windows应用程序关闭时存储变量并在以后访问它们 [英] Storing variables when windows app is closed and accessing them later

查看:85
本文介绍了在Windows应用程序关闭时存储变量并在以后访问它们的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有什么方法可以在任何变量中存储一些值,并在下次启动Windows应用程序时访问它们。



我试过存储值在文本文件中,以后访问它们但由于某些文件访问问题,我需要将这些值存储在某种变量中。

解决方案

你想要使用IsolatedStorage:  http://stackoverflow.com/questions/23121146/窗口电话-8-1-孤立存储

Is there any way by which I can store some values in any variables and access them when windows app is started next time.

I tried storing values in text file and later accessing them but due to some file access issue I need to store these values in some kind of variable.

解决方案

You want to use the IsolatedStorage for it: http://stackoverflow.com/questions/23121146/windows-phone-8-1-isolated-storage


这篇关于在Windows应用程序关闭时存储变量并在以后访问它们的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆