Storing Application Settings

Other topics

Adding a value

//Add value to Isolated Storage Settings    
IsolatedStorageSettings.ApplicationSettings.Add("Key", "Value");

Checking if a value exists

//Check if a value exists in settings already
if (IsolatedStorageSettings.ApplicationSettings.Contains("Key"))
{
    //perform logic
}

Reading the value

string setting = IsolatedStorageSettings.ApplicationSettings["Key"] as string;

Saving the settings

IsolatedStorageSettings.ApplicationSettings.Save();

Contributors

Topic Id: 5952

Example Ids: 20868,20869,20870,20871

This site is not affiliated with any of the contributors.