我尝试使用以下代码增加 IsoLatedStorage 大小:
using (IsolatedStorageFile iso = IsolatedStorageFile.GetUserStoreForApplication())
{
if (iso.FileExists(fileName))
iso.DeleteFile(fileName);
iso.IncreaseQuotaTo(iso.Quota + memoryStream.Length);
//.....
}
但我不能,我检查了iso.Quota之前和IncreaseQuotaTo调用之后,它没有改变。看起来像代码 iso.IncreaseQuotaTo(iso.Quota + memoryStream.Length); 不工作。然后我得到错误:没有足够的空间来执行操作。当我尝试将memoryStream 写入IsolatedStream 时。
不知道为什么。如何解决这个问题?