2012-11-16 121 views

回答

5

如果它來存儲一個整數值,最簡單的方法是使用IsolatedStorageSettings.ApplicationSettings

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

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