我的Windows Phone 8.1应用程序中有一个SQLite数据库。我通过使用此代码复制它SQLite数据库存储在Windows Phone 8.1中的位置
public async void UpDatabase()
{
bool isDatabaseExisting = false;
try
{
StorageFile storageFile = await ApplicationData.Current.LocalFolder.GetFileAsync("ComplainSys.db");
isDatabaseExisting = true;
}
catch
{
isDatabaseExisting = false;
}
if (!isDatabaseExisting)
{
StorageFile databaseFile = await Package.Current.InstalledLocation.GetFileAsync("ComplainSys.db");
await databaseFile.CopyAsync(ApplicationData.Current.LocalFolder);
}
}
我想访问它存储的位置。当我放置断点并检查该路径并尝试访问它时显示此错误。
如何访问呢?
是通过复制路径如图所示 – 2014-10-04 12:48:23
@ user3814490您无法使用计算机的资源管理器来打开该文件夹。为了访问它,你需要使用WinRT API或尝试使用Isolated Storage Explore,但我不确定它是否适用于WinRT。 – 2014-10-04 12:50:40
@ user3814490是的,独立存储资源管理器将与WinRT应用程序一起使用,您也可以查看独立存储间谍。 – Romasz 2014-10-04 16:24:11