如何使用 FileOpenPicker 从 OneDrive 打开文件? [英] How to open a file from OneDrive with FileOpenPicker?

查看:33
本文介绍了如何使用 FileOpenPicker 从 OneDrive 打开文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

文档 说你的应用程序可以通过使用 Windows.Storage.Pickers 命名空间来使用 Windows 文件选择器打开和保存文件到用户的 OneDrive."当 FileOpenPicker 打开选择窗口时,找不到 OneDrive.该应用程序已使用范围wl.skydrive_update"登录.有人可以提供有关此的提示吗?

The document says "Your app can use the Windows file picker by using the Windows.Storage.Pickers namespace for opening and saving files to the user's OneDrive. " When FileOpenPicker opens the selection window, OneDrive is nowhere to be found. The app has signed in with scope "wl.skydrive_update". Could anyone offer a tip on this?

推荐答案

您使用的是 Windows 10 通用应用程序吗?据我所知,Windows 8.1 不支持此功能.

Are you using a Windows 10 Universal App? As far as I know this is not supported on Windows 8.1.

(经过测试我知道彼得是对的)这是我从不知道存在的惊人功能.正如 Peter 解释的那样,我刚刚对其进行了测试,并使用选取器您可以在 Onedrive 中打开现有文件,还可以在 Windows 8.1 商店应用中创建新文件.

(after testing I know Peter is right) This is an amazing feature that I never knew existed. As Peter explained, I just tested it and using the pickers you can open existing files in Onedrive and also create new files in a Windows 8.1 store app.

这在 Windows 10 中可能效果不佳,因为我相信他们正在将 Onedrive 更改为仅显示选择"进行同步的文件,并且默认情况下您不会看到所有现有文件.也许彼得可以对此发表评论.

This may not work as well in Windows 10 because I believe they are changing Onedrive to only show the files that are "selected" for syncing and you won't see all the existing files by default. Maybe Peter can comment on this.

这篇关于如何使用 FileOpenPicker 从 OneDrive 打开文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆