IsolatedStorageFile 配额等
2010-03-25 13:52
176 查看
示例:
//显示设置配额
System.IO.IsolatedStorage.IsolatedStorageFile userStoreForSite = System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForSite();
if (userStoreForSite.Quota<15*1024*1024)
{
if (userStoreForSite.IncreaseQuotaTo(15 * 1024 * 1024))
{
MessageBox.Show("设置成功!");
}
}
会弹出一个对话框向用户确认。
注意:
在构造方法中执行不会弹出对话框,不知道这是为什么,我这里把代码的放在了一个按钮的事件中。
//显示设置配额
System.IO.IsolatedStorage.IsolatedStorageFile userStoreForSite = System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForSite();
if (userStoreForSite.Quota<15*1024*1024)
{
if (userStoreForSite.IncreaseQuotaTo(15 * 1024 * 1024))
{
MessageBox.Show("设置成功!");
}
}
会弹出一个对话框向用户确认。
注意:
在构造方法中执行不会弹出对话框,不知道这是为什么,我这里把代码的放在了一个按钮的事件中。
相关文章推荐
- wp8 IsolatedStorageFile XML读写方法
- 【Silverlight】利用IsolatedStorageFile实现客户端缓存
- Creating a File Explorer for Isolated Storage
- 使用 IsolatedStorageFileStream 存储信息
- Windows Phone的本地存储——IsolatedStorageFile
- Operation not permitted on IsolatedStorageFileStream 解决方法
- OpenFile Operation not permitted on IsolatedStorageFileStream
- Operation not permitted on IsolatedStorageFileStream解决方法(转)
- 使用 IsolatedStorageFileStream 存储信息
- 关于Windows phone 7.1 IsolatedStorageFile问题
- silverlight-IsolatedStorageFile来操作文件。
- Windows Phone的本地存储——IsolatedStorageFile
- Windows phone IsolatedStorageFile 读写XML
- Windows Phone 独立存储(IsolatedStorageFile)
- Silverlight 独立存储(IsolatedStorageFile)
- IsolatedStorageFile生成的文件在vista下面存在哪里?
- WP7独立存储之IsolatedStorageFile之图片的存储和读取
- 利用WP7独立存储IsolatedStorageFile读写文件
- IsolatedStorageFile 本地数据缓存 xml dataset 读写
- Operation not permitted on IsolatedStorageFileStream error