开发者

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

开发者 https://www.devze.com 2023-02-28 03:28 出处:网络
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 = IsolatedStorageFil

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

精彩评论

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