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
精彩评论