我想访问内存中可用的下载文件夹中的下载文件。我尝试了C:\ Data \ Users \ Public \ Downloads \它会产生未经授权的结果。如何在Windows Phone 8.1中访问内部存储器。
答案 0 :(得分:0)
您可以使用文件或文件夹选择器
FileOpenPicker picker= new FileOpenPicker();
openPicker.SuggestedStartLocation = PickerLocationId.Downloads;
StorageFile file = await piker.PickSingleFileAsync();
或
FolderPicker piker= new FolderPicker();
piker.SuggestedStartLocation = PickerLocationId.Downloads;
piker.PickFolderAndContinue();