隔离存储 [英] Isolated Storage

查看:105
本文介绍了隔离存储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将我的文件和照片保存在Windows手机的本地内存中,


如何为Silverlight 8.1 Windows手机应用程序执行此操作?

解决方案

如果您希望数据始终保持在本地,请尝试使用
Windows.Storage.ApplicationData.Current.LocalSettings。


这可能是一个示例代码段:

 var localSettings = Windows.Storage.ApplicationData.Current.LocalSettings; 
if(locaSettings.Values.ContainsKey(" LocationConsent")
DoSomething(locaSettings.Values [" LocationConsent"])

更多信息:


http://joaoeduardosousa.wordpress.com/2014/05/30/windows-phone-8-1-readsave-settings-isolated-storage/


I want to save my files and photos in the local memory of windows phone, 

How can I do this for silverlight 8.1 windows phone app ?

解决方案

If you want the data to stay always local try using Windows.Storage.ApplicationData.Current.LocalSettings.

this could be a sample snippet:

var localSettings = Windows.Storage.ApplicationData.Current.LocalSettings;
if(locaSettings.Values.ContainsKey("LocationConsent")
    DoSomething(locaSettings.Values["LocationConsent"])

For more:

http://joaoeduardosousa.wordpress.com/2014/05/30/windows-phone-8-1-readsave-settings-isolated-storage/


这篇关于隔离存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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