我想从路径手动创建一个StorageFile,但是StorageFile没有构造函数。
有什么简单的方法来做这样的事吗?
StorageFile f = new StorageFile("C:\song.mp3");发布于 2014-07-13 15:30:28
StorageFile file = await StorageFile.GetFileFromPathAsync(item.Path);发布于 2014-07-13 15:23:56
您需要使用StorageFile.GetFileFromPathAsync API:
http://msdn.microsoft.com/en-us/library/windows/apps/windows.storage.storagefile.getfilefrompathasync.aspx
https://stackoverflow.com/questions/24724168
复制相似问题