I want store an integer value in isolated storage in wp7 so that when i close and open the app again, the value should be retained. How can I obtained this?
If it's to store a single integer value, the easiest way is to use IsolatedStorageSettings.ApplicationSettings
:
// Store the value
IsolatedStorageSettings.ApplicationSettings["Whatever"] = yourValue;
// Retrieve it
yourValue = (int)IsolatedStorageSettings.ApplicationSettings["Whatever"];
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.