I am using the following code to save a list of about 100 objects to IsolatedStorage:
IsolatedStorageSettings.ApplicationSettings.Add("MyApp", theList);
IsolatedStorageSettings.ApplicationSettings.Save();
Loading is done in the following way:
theList = (List<Object>)IsolatedStorageSettings.ApplicationSettings["MyApp"];
In the WP7 emulator, this code works: the list of data is correctly saved and loaded when restarting the app. However, when I restart the emulator the data is gone. Since I sadly don’t own a Windows Phone 7, my question is: will this data be saved “forever” on a real phone? Or will the data vanish when the phone is turned off? I need to make sure that the list will not be deleted after a reboot of the phone.
Yes, it will persist through rebooting of the phone.