Friday, June 19, 2009

How to Store and Retrieve Application Settings Using Isolated Storage

•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 2, application settings are stored locally on the user's computer
To create an application settings dictionary and add an entry
•Create a new instance of the IsolatedStorageSettings class
•Call the Add method to add a key/value pair into the dictionary.
To retrieve a value from the application settings dictionary
•Reference the key and assign a new value
To delete an item in the application settings dictionary
•Call the Remove method and pass the key of the item to remove, as shown in the following example
•appSettings.Remove("email");

No comments:

Post a Comment