简体   繁体   中英

How to get internal storage size of a windows phone 8 device programmatically

I'm creating a windows phone 8 app and I need to get internal storage size of the device. I'm using C# in building my app.

From here: How much storage do I have access to on WP7?

You can test for available space with IsolatedStorageFile.AvailableFreeSpace.

You should be careful about using all available space as it will impact other apps and general device performance. Hopefully the OS will stop anything horrible happening if you did use all free space but best to try and avoid being the cause of this.

There are some limits on the number of fies and directories you can have but you're very unlikely to hit these. Details at http://dotnetcatch.wordpress.com/2010/09/08/wp7-how-many-files-does-it-take-to-crash-isolatedstorage-more-than-you-think/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM