我希望在隔离存储中使用文件的完整路径(如URI),我知道有沙箱api来访问隔离存储。但我必须用它们的路径来装载图像。
那么这有可能吗?
发布于 2014-08-06 17:04:33
我是这样的:
public string GetAbsolutePathOfFile(string filePath)
{
using (var storage = IsolatedStorageFile.GetUserStoreForApplication())
{
using (var isfs = storage.OpenFile(filePath, FileMode.Open, FileAccess.ReadWrite,
FileShare.ReadWrite))
{
return isfs.Name; // this return the absolute path.
}
}
}https://stackoverflow.com/questions/25162964
复制相似问题