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 will learn about sync provider notifications in Windows 11 and how to disable or enable it...
In this tutorial, let’s learn how to enable or disable the startup sound in Windows 11. By default, when Windows...
The CameraCaptureTask allows the Windows Phone 7 App to launch the Camera Application . This will be useful when the...