如何访问Windows Phone 8.1中内存中的下载文件夹

时间:2016-01-05 10:58:31

标签: windows-phone-8.1

我想访问内存中可用的下载文件夹中的下载文件。我尝试了C:\ Data \ Users \ Public \ Downloads \它会产生未经授权的结果。如何在Windows Phone 8.1中访问内部存储器。

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();