Silverlight: Isolated Storage

Overview

Silverlight isolated storage allows applications to store data locally on the client machine separate from the browser cache. The isolated storage system provides easy access to both dictionary-style key/value pairs and also to files and folders within a virtual file system. This makes it possible to store both simple settings and files. The size of data is limited by a per-domain quota to 1MB which can be increased by prompting the user for permission using the IsolatedStorageFile.IncreaseQuotaTo() method.

Key/Value Pairs

Settings can be saved at either the application-level using the IsolatedStorageSettings object's ApplicationsSettings property or at the domain-level with the SiteSettings property.

Example

C# Example
Visual Basic Example

Files and Folders

The IsolatedStorageFile class gives you access to the virtual file system provided by isolated storage. The class has methods to create, access, and delete files and folders within the store and also exposes properties that let you check for available space.

Example

C# Example
Visual Basic Example

Further Reading

Related information on the web is listed below.