开发者

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

I want to know how many kilobytes/megabytes of isolated storage my app is using on Windows Phone 7. Is there a simple way to fi开发者_Python百科nd this out?


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜