使用 C# for WinRT 如何访问应用程序数据文件夹“LocalCache”?
来自页面http://msdn.microsoft.com/en-us/library/windows/apps/hh464917.aspx 我可以看到在App data storage下有这样的描述,“localcache Persistent data that exists only on the current device.”,但我还没有找到一种方法来利用WinRT的限制来访问该目录。
我不想在其中放置一个 sqlite 文件,它会在以后安装我们的 WinRT 应用程序后继续存在。
我可以用
Windows.Storage.ApplicationData.Current.LocalFolder.Path
进入 LocalState 文件夹,但我还没有找到类似的东西
Windows.Storage.ApplicationData.Current.LocalCache.Path
请您参考如下方法:
LocalCache 文件夹仅在 Windows Phone 8.1 上存在;没有进入 Windows 8.1。不幸的是,文档没有明确说明。只需使用 LocalState,因为文档中提到的云备份目前也仅限电话。
