wp7の分離ストレージに整数値を格納して、アプリを閉じて再度開いたときに値が保持されるようにします。どうすればこれを入手できますか?
1 に答える
5
単一の整数値を格納する場合、最も簡単な方法は次を使用することIsolatedStorageSettings.ApplicationSettings
です。
// Store the value
IsolatedStorageSettings.ApplicationSettings["Whatever"] = yourValue;
// Retrieve it
yourValue = (int)IsolatedStorageSettings.ApplicationSettings["Whatever"];
于 2012-11-16T09:33:44.990 に答える