我在 WP7 上可以访问多少存储空间?
我知道可以通过独立存储获得存储空间,但我不确定我是否在任何地方看到我可以为我的应用程序访问多少实际存储空间。有人知道吗?
I know that storage is available via Isolated Storage, but I'm not sure I've seen anywhere how much actual storage I have access to for my app. Anyone know?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您的应用程序不限于一定量的磁盘空间或任何配额(例如“完整”Silverlight)。理论上,您可以继续添加文件/使用磁盘空间,直到设备耗尽。
您可以使用 IsolatedStorageFile.AvailableFreeSpace。
您应该谨慎使用所有可用空间,因为这会影响其他应用程序和一般设备性能。如果您确实使用了所有可用空间,希望操作系统能够阻止任何可怕的事情发生,但最好尽量避免成为造成这种情况的原因。
您可以拥有的文件和目录的数量有一些限制,但您不太可能达到这些限制。详细信息请参见http://dotnetcatch.wordpress.com/2010/09/08/wp7-how-many-files-does-it-take-to-crash-isolatedstorage-more-than-you-认为/
Your application isn't limited to a certain amount of disk space or any quota (like on "full" Silverlight). You can, in theory, keep adding files/using disk space until the device runs out.
You can test for available space with IsolatedStorageFile.AvailableFreeSpace.
You should be careful about using all available space as it will impact other apps and general device performance. Hopefully the OS will stop anything horrible happening if you did use all free space but best to try and avoid being the cause of this.
There are some limits on the number of fies and directories you can have but you're very unlikely to hit these. Details at http://dotnetcatch.wordpress.com/2010/09/08/wp7-how-many-files-does-it-take-to-crash-isolatedstorage-more-than-you-think/
MS 表示至少 8GB,但设备可能安装了更多
http://msdn.microsoft.com/en-us/library/ff637514(v=VS.92).aspx
单个应用程序没有限制
[编辑] 单个应用程序有限制:
2 Gigs 是您的应用程序可以增长到的总大小。
http:// www.imaginativeuniversal.com/blog/post/2010/10/04/20-50-90-400-and-2.aspx
MS says a minimum of 8GB but devices may have more installed
http://msdn.microsoft.com/en-us/library/ff637514(v=VS.92).aspx
There are no limits for a single app
[EDIT] There IS a limit for a single app:
2 Gigs is the total size your app can grow to.
http://www.imaginativeuniversal.com/blog/post/2010/10/04/20-50-90-400-and-2.aspx
只是想补充一点,当内存只剩下 10% 时,操作系统就会开始尖叫。
Just wanted to add that OS will start screaming when only 10% memory is left.