This topic has not yet been rated - Rate this topic

WebClient.DownloadFileAsync Method

Downloads the specified resource to a local file. These methods do not block the calling thread.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method DownloadFileAsync(Uri, String) Downloads, to a local file, the resource with the specified URI. This method does not block the calling thread.
Public method DownloadFileAsync(Uri, String, Object) Downloads, to a local file, the resource with the specified URI. This method does not block the calling thread.
Top
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Use with caution...
This method will create a 0 length file before it starts to download it. Another hidden added bonus is that it will not throw an Exception if the URL gives you a 404 response, or any other response for that matter.