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

Joh*_*ert 5 c# isolatedstorage windows-phone-7

我想知道我的应用程序在Windows Phone 7上使用多少千字节/兆字节的隔离存储空间.有一种简单的方法可以找到它吗?

the*_*ent 5

IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication();
long usedBytes = isf.Quota - isf.AvailableFreeSpace;
Run Code Online (Sandbox Code Playgroud)

文档:http://msdn.microsoft.com/en-us/library/system.io.isolatedstorage.isolatedstoragefile(v = VS.96).aspx