繁体   English   中英

从其他应用程序增加Windows Phone上的隔离存储大小

[英]Increase isolated storage size on windows phone from a different application

是否可以通过其他应用程序或通过电话上的设置来增加Windows Phone 8应用程序的隔离存储大小?

这个问题引出另一个问题,为什么您要这么做呢? 具体来说,您遇到的是什么问题,您想增加隔离存储?...可以通过本SO帖子中提供的关于如何直接流到隔离存储的答案来解决您的问题吗?

即看一下以下功能的使用:

IncreaseIsolatedStorageSpace(e.Result.Length)

看看这个Windows 7 Phone解决方案

protected bool IncreaseIsolatedStorageSpace(long quotaSizeDemand)
{
    bool CanSizeIncrease = false;
    IsolatedStorageFile isolatedStorageFile = IsolatedStorageFile.GetUserStoreForApplication();
    //Get the Available space
    long maxAvailableSpace = isolatedStorageFile.AvailableFreeSpace;

    if (quotaSizeDemand > maxAvailableSpace)
    {
        if (!isolatedStorageFile.IncreaseQuotaTo(isolatedStorageFile.Quota + quotaSizeDemand))
        {
            CanSizeIncrease = false;
            return CanSizeIncrease;
        }

        CanSizeIncrease = true;
        return CanSizeIncrease;
    }

    return CanSizeIncrease;
}

编辑:失败了,看看Windows Phone Power Tools ,它比基本的SDK更好

应用程序在Windows Phone上被沙箱化
无法增加来自其他应用程序的隔离存储大小。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM