2012-11-16 125 views

回答

5

如果它来存储一个整数值,最简单的方法是使用IsolatedStorageSettings.ApplicationSettings

// Store the value 
IsolatedStorageSettings.ApplicationSettings["Whatever"] = yourValue; 

// Retrieve it 
yourValue = (int)IsolatedStorageSettings.ApplicationSettings["Whatever"];