WebClient.DownloadFileAsync Method
.NET Framework 4
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 | |
|---|---|---|
|
DownloadFileAsync(Uri, String) | Downloads, to a local file, the resource with the specified URI. This method does not block the calling thread. |
|
DownloadFileAsync(Uri, String, Object) | Downloads, to a local file, the resource with the specified URI. This method does not block the calling thread. |
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.
- 11/14/2010
- brocko05
- 11/20/2010
- Thomas Lee