【问题标题】:Windows storage for windows 8 app适用于 Windows 8 应用程序的 Windows 存储
【发布时间】:2013-05-13 09:35:11
【问题描述】:

我曾经使用隔离存储开发 wp7 应用程序。现在我想将一些应用程序移植到 Windows 8,并且我想使用 Windows 本地存储来保存一些东西。对于 wp7,我使用常见的隔离存储设置,但我不知道如何将其代码更改为 windows 存储。 我想将以下代码更改为 Windows.Storage -

if (!IsolatedStorageSettings.ApplicationSettings.TryGetValue(
this.name, out this.value)) //**Need to change this codes for windows storage**
{
    this.value = this.defaultValue;
    IsolatedStorageSettings.ApplicationSettings[this.name] = this.value; //**Need to change this codes for windows storage**
}

提前感谢您的帮助!!!

【问题讨论】:

    标签: windows-8


    【解决方案1】:

    如何在 Windows 8 应用程序中保存\获取\检查应用程序设置的好示例https://stackoverflow.com/a/14662969/1200453

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-02-25
      • 2015-09-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多