In this article

11/17/2011

3 minutes to read

In this article

How to: Store and Retrieve Application Settings Using Isolated Storage

You can use isolated storage in Silverlight to store application settings, which are per-application, per-computer, and per-user settings. Their scope is determined by the full path of the application .xap file. For example, you can store application settings, such as number of images to display per page, page layout customization settings, and so on.

You store application settings using isolated storage by using members of the IsolatedStorageSettings class. This class implements a dictionary that is designed to store name/value pairs.

Like all data stored in isolated storage using Silverlight, application settings are stored locally on the user's computer. In Windows 7, the information is stored in the AppData\LocalLow directory. For other operating system versions, including those on the Apple Macintosh, information is stored in the AppData\Local directory. Values stored in isolated storage are stored locally and are not available for roaming.

Note:

If you have multiple instances of an out-of-browser application running on the same computer and you use IsolatedStorageSettings, you may experience unexpected behavior when reading and saving settings. If this is a scenario for your application, consider using the IsolatedStorageFile APIs instead of IsolatedStorageSettings.