如何获取IsolatedStorageFile的音乐属性?
我知道StorageFile.GetFileFromPathAsync
但我无法弄清楚如何从IsolatedStorageFile获取StorageFile
答案 0 :(得分:0)
这有两个部分:
我无法弄清楚如何从IsolatedStorageFile获取StorageFile
要从应用程序本地存储(WP7独立存储)获取文件,您需要使用以下命令访问该文件夹:
StorageFolder localRoot = ApplicationData.Current.LocalFolder;
StorageFile file = await localRoot.getFileAsync("filename.txt");
如何获取IsolatedStorageFile的音乐属性?
Getting the properties of a file in the isolated storage is not supported by Silverlight. Unfortunately it isn't supported with a StorageFile either.