How to find out the Space in isolated storage in Windows Phone?

The IsolatedStorageFile class in Windows Phone provides the methods that indicate the amount of space (free/total space) for isolated storage.

The IsolatedStorageFile class has the following members which could be used to find out the space related information for isolated storage.

1. Quota – This property will return the maximum amount of space available for the isolated storage.

2. AvailableFreeSpace – This property will return the available space for isolated storage.

decimal availablespace, Quota;
using (var store = IsolatedStorageFile.GetUserStoreForApplication())
{
   availablespace = store.AvailableFreeSpace ;
   Quota = store.Quota ;
}

MessageBox.Show("Available : " + availablespace.ToString() + ",Quota : " + Quota.ToString());

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn about the Win32 Error “0x000019E5 – ERROR_COULD_NOT_RESIZE_LOG” that you get when debugging system erors in...
In this post, you’ll learn about the error “CO_E_DBERROR 0x8004E02B” that is returned when working with COM based APIs or...
In this post, you’ll learn about the Win32 Error “0x000019D0 – ERROR_LOG_BLOCK_VERSION” that you get when debugging system erors in...