https://msdn.microsoft.com/en-us/library/windows/apps/windows.storage.applicationdata.localsettings.ASPx

var localSettings = Windows.Storage.ApplicationData.Current.LocalSettings; // Create a simple setting localSettings.Values["exampleSetting"] = "Hello Windows"; // Read data from a simple setting Object value = localSettings.Values["exampleSetting"]; if (value == null) { // No data } else { // Access data in value } // Delete a simple setting localSettings.Values.Remove("exampleSetting");
posted on 2015-06-04 20:27  ximenchuixie  阅读(214)  评论(0编辑  收藏  举报