简体   繁体   English

有没有办法找出您的应用程序在WP7上使用的隔离存储中有多少空间?

[英]Is there a way to find out how much space in isolated storage you app is using on WP7?

我想知道我的应用程序在Windows Phone 7上使用了多少千字节/兆字节的隔离存储。是否有一种简单的方法可以找到答案?

IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication();
long usedBytes = isf.Quota - isf.AvailableFreeSpace;

Documentation here: http://msdn.microsoft.com/en-us/library/system.io.isolatedstorage.isolatedstoragefile(v=VS.96).aspx 此处的文档: http : //msdn.microsoft.com/zh-cn/library/system.io.isolatedstorage.isolatedstoragefile(v=VS.96).aspx

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

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