获取IsolatedStorageFile的MusicProperties / metadata

时间:2013-08-16 06:03:06

标签: c# windows-phone-7 windows-phone-8

如何获取IsolatedStorageFile的音乐属性? 我知道StorageFile.GetFileFromPathAsync但我无法弄清楚如何从IsolatedStorageFile获取StorageFile

1 个答案:

答案 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.