我是Windows Phone 7开发的新手。如何通过我的应用程序访问本地数据库?
答案 0 :(得分:0)
您可以使用以下内容保存到隔离存储:
var settings = IsolatedStorageSettings.ApplicationSettings;
if (settings.Contains("Bell"))
{
settings["Bell"] = newBell;
}
else
{
settings.Add("Bell", newBell);
}
settings.Save();
再次从隔离存储中读取:
var settings = IsolatedStorageSettings.ApplicationSettings;
if (settings.Contains("Bell"))
{
newBell = (string)settings["Bell"];
}