Geeks With Blogs


Microsoft Store

Support This Site

AddThis Social Bookmark Button

Locations of visitors to this page

Subscribers to this feed

TwitterCounter for @sdorman

Creative Commons License

Scott Dorman Microsoft MVP, Software Architect, Developer, Author

It's been a while since I wrote the first version of my FileDownloader article and class. Since that time, there have been a lot of positive comments about the article and a handful of feature requests. I finally made the time to update the classes and the article and resubmit it to The Code Project. This update has the following new methods and properties:

Gets or sets the download block size in Kilobytes (KB).
Gets or sets a value indicating if HTML pages should be allowed to be downloaded.
Gets a value that represents an indefinite timeout for a synchronous download operation.
Gets a value indicating whether the FileDownloader is running an asynchronous operation.
Gets or sets a value indicating if the existing file should be overwritten.
Indicates whether to pre-authenticate the request.
Gets or sets a value indicating the timeout for asynchronous download operations.
Begin downloading the file at the specified URL, and save it to the current folder.
Cancel the current download operation.
Retrieves the last modified date of the file at the specified URL.

There is another update pending (it has been submitted, but just needs to go through the editing queue) that adds the following property:

Gets or sets the value of the User-agent HTTP header.
Posted on Thursday, August 16, 2007 7:35 PM .NET (C#) | Back to top

Copyright © Scott Dorman | Powered by: