You must be using Windows Phone 8.0 SDK. DownloadCompleted
and LiveDownloadCompletedEventArgs
are part of the Microsoft.Live
namespace on WP7.1.
In Windows Phone 8.0 DownloadAsync()
is used with the await
keyword. You can use it with or without progress notification.
Sample:
var result = await client.DownloadAsync(path); // path will be file id followed by '/content'
var stream = result.Stream;