Win8开发笔记5 保存配置
保存配置参数至系统使用如下:
ApplicationDataContainer myContainer = ApplicationData.Current.LocalSettings; myContainer.Values["index"] = "Hello";
从系统中读取软件配置参数使用:
ApplicationDataContainer container = ApplicationData.Current.LocalSettings; String str = (string)container.Values["index"];
当然,使用ApplicationDataContainer类还需要
using Windows.Storage;