简体   繁体   English

获取IsolatedStorageFile的MusicProperties /元数据

[英]get MusicProperties/metadata of IsolatedStorageFile

How can i get music properties of IsolatedStorageFile? 我如何获得IsolatedStorageFile的音乐属性? I am aware of StorageFile.GetFileFromPathAsync but i couldn't figure out how to get StorageFile from IsolatedStorageFile either 我知道StorageFile.GetFileFromPathAsync但我也无法弄清楚如何从IsolatedStorageFile获取StorageFile

There are two parts to this: 这有两个部分:

I couldn't figure out how to get StorageFile from IsolatedStorageFile either 我也无法弄清楚如何从IsolatedStorageFile获取StorageFile

To get a file from the applications local storage (WP7 Isolated Storage) you need to access the folder using: 要从应用程序本地存储(WP7隔离存储)获取文件,您需要使用以下方法访问该文件夹:

StorageFolder localRoot = ApplicationData.Current.LocalFolder;
StorageFile file = await localRoot.getFileAsync("filename.txt");

How can I get music properties of IsolatedStorageFile? 如何获得IsolatedStorageFile的音乐属性?

Getting the properties of a file in the isolated storage is not supported by Silverlight. Silverlight不支持在隔离存储中获取文件的属性。 Unfortunately it isn't supported with a StorageFile either. 不幸的是,StorageFile也不支持它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM