Joh*_*ert 5 c# isolatedstorage windows-phone-7
我想知道我的应用程序在Windows Phone 7上使用多少千字节/兆字节的隔离存储空间.有一种简单的方法可以找到它吗?
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