gpt4 book ai didi

c# - 如何在 WinRT 应用程序中访问文件夹 "LocalCache"

转载 作者:太空宇宙 更新时间:2023-11-03 21:33:41 26 4
gpt4 key购买 nike

使用 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,因为文档中提到的云备份目前也仅限电话。

关于c# - 如何在 WinRT 应用程序中访问文件夹 "LocalCache",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22972445/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com