Windows 应用商店应用程序在哪里存储其本地设置? [英] Where does Windows Store apps stores its local settings?

查看:39
本文介绍了Windows 应用商店应用程序在哪里存储其本地设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

各位程序员好,

我是 Windows 8 的新手.Windows Store 应用程序的 LocalSettings 在哪里存储其序列化文件?我指的是这个:

I am new to Windows 8. Where does Windows Store app's LocalSettings store its serialized file ? I am referring to this one:

Windows.Storage.ApplicationData.Current.LocalSettings

根据 WinStore 应用教程此处,我可以加载和保存序列化属性漫游设置或本地设置.漫游到云端,但本地设置到底去哪里?注册表?隔离文件?

Per WinStore app tutorial here, I can load and save serialized properties to either roaming settings or local settings. The roaming goes to the cloud, but where exactly does the local setting goes to ? Registry? Isolated file?

提前致谢.

推荐答案

在 c:\users\{username}\AppData\Local\Packages\{packageID} 中查找,其中 packageID 标识特定应用程序.在那里,您会看到许多文件夹,在名为 Settings 的文件夹中,您会看到 settings.dat.这就是 LocalSettings 和 RoamingSettings 的存储位置.(漫游设置存储在本地并与云同步,因此您不会每次想要检索时都访问云.)

Look in c:\users\{username}\AppData\Local\Packages\{packageID} where packageID identifies a particular app. In there you'll see a number of folders, and inside the one called Settings you'll see settings.dat. That's where the LocalSettings and RoamingSettings are stored. (Roaming settings are stored locally and sync'd with the cloud, so you aren't hitting the cloud every time you want to retrieve one.)

如果要在设置中存储的内容对于键值对来说过于复杂,则可以在设置旁边的 LocalState、RoamingState 和 TempState 文件夹中存储自己的文件.

The LocalState, RoamingState, and TempState folders alongside Settings are where you can store your own files if what you want to store in settings gets too complicated for key-value pairs.

这篇关于Windows 应用商店应用程序在哪里存储其本地设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆