【发布时间】:2015-05-07 06:00:25
【问题描述】:
我已尝试使用此代码在 Windows Phone 上获取文件夹。
FolderPicker folderPicker = new FolderPicker();
folderPicker.SuggestedStartLocation = PickerLocationId.Downloads;
StorageFolder folder = await folderPicker.PickSingleFolderAsync();
if (folder != null)
{
string Token = Windows.Storage.AccessCache.StorageApplicationPermissions.MostRecentlyUsedList.Add(folder, folder.Name);
}
但PickSingleFolderAsync 在 Windows Phone 8.1 中不受支持,PickFolderAndContinue 是一个 void 函数。
如何向StorageApplicationPermissions.MostRecentlyUsedList 添加文件夹?
【问题讨论】: