首页 文章

在OneDrive中获取图像的URL

提问于
浏览
0

我在C#中使用LiveSDK . 有没有办法获取指定图像文件的URL(例如,像这样的URL:https://onedrive.live.com/embed?cid=1ED5694B634A1579&resid=1ED5694B634A1579%21685&authkey=ANQwPScWiCxbILY),以便将此链接直接放到Image(Source属性)控件?我不想从OneDrive文件下载Stream,将其设置为BitmapImage并将其放入Image控件 .

我知道OneDrive Web应用程序允许为所选文件创建URL,但不知道SDK是否具有此功能 .

1 回答

  • 1

    MSDN示例页面中有一个非常好的示例,展示了如何从OneDrive中提取和使用图像 .

    Photo Sky SampleThis sample demonstrates how to use the LiveSDK for pulling images from SkyDrive. In this sample you will learn how to use LiveSDK and request consent from the user to access his SkyDrive files and display the images in a Metro style application.

    资料来源:PhotoSky - SkyDrive Sample

相关问题