【发布时间】:2011-08-02 05:34:03
【问题描述】:
我正在在线下载一个 epub 文件。为此,我首先使用Directory.CreateDirectory 创建了一个目录,然后使用以下代码下载了该文件。
WebClient webClient = new WebClient();
webClient.DownloadStringAsync(new Uri(downloadedURL), directoryName);
webClient.DownloadProgressChanged +=
new DownloadProgressChangedEventHandler(ProgressChanged);
webClient.DownloadStringCompleted +=
new DownloadStringCompletedEventHandler(Completed);
这是下载文件的正确方法吗?查看下载的文件并在网格中显示的代码是什么?
【问题讨论】:
-
你正在下载什么样的文件?
标签: c# windows-phone-7 download webclient