首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > windows >

windows phone:独力存储

2013-03-06 
windows phone:独立存储任何安装在windows phone中的程序都可以访问自身的永久磁盘存储区域,这个区域称为

windows phone:独立存储

任何安装在windows phone中的程序都可以访问自身的永久磁盘存储区域,这个区域称为独立存储。程序可以使用System.IO.IsolatedStorage下的类来访问独立存储,使用如下所示。

保存:

IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings;

Color clr = Color.FromArgb(255, 124,234,192);

settings["bgColor"] = clr;

settings.Save();

获取:

settings.TryGetValue<Color>("bgColor",out clr);

热点排行