独立存储,在Silverlight中一样能轻松实现
来源:广州中睿信息技术有限公司官网
发布时间:2012/10/21 23:25:16
编辑:itlead
阅读 1820 次
IsolatedStorageFile类似IsolatedStorageSettings,IsolatedStorageFile提供了两个静态方法GetUserStoreForApplication
IsolatedStorageFile
类似IsolatedStorageSettings,IsolatedStorageFile提供了两个静态方法GetUserStoreForApplication和GetUserStoreForSite,分别返回作用范围不同的两个IsolatedStorageFile的实例。
IsolatedStorageFile提供了一组访问文件夹、文件的方法。

创建文件夹

创建文件

读文件

增加配额

前文说过默认存储空间为1M,可以通过上面方法增加配额,此时浏览器将会弹出一个确认对话框。
本站技术原创栏目文章均为中睿原创或编译,转载请注明:文章来自中睿,本站保留追究责任的权利。