WP8、VS 2013 Live SDK (nuget) v5.5
private async void DownLoadImageFromSkyDrive(string imgUrl, Int32 number)
{
LiveConnectClient client = new LiveConnectClient(_currentSession);
var image = await client.DownloadAsync(imgUrl + "/content");
BitmapImage bitmap = new BitmapImage();
bitmap.SetSource(image.Stream);
}
执行后
var image = await client.DownloadAsync(imgUrl + "/content");
调用堆栈位于父函数中。也不例外,但是
BitmapImage bitmap = new BitmapImage();
不执行。代码已经工作了......