Methode required equal to URLDownloadToCacheFile()

  • Thread starter Thread starter Thorsten
  • Start date Start date
T

Thorsten

Hello,

the class WebClient has a method DownloadFile(), but in this case I would
need to care for the target directory and filename, as well as for deleting
the file after use.

In urlmon.dll is a method URLDownloadToCacheFile(), which downloads files
directly to the cache of Internet Explorer and gives me the temporary file
name of the downloaded file.

Is there nothing equal in the .Net Framework? I nearly can't believe it. Or
are there methods to retrieve the path to the cache of Internet Explorer and
to get a temporary file name?

Regards
Thorsten
 
Support for caching is not available until .Net framework 1.1. In 2.0
release there would be caching suuport, where you could be able to specify
the caching policy on HttpWebRequest.
 
Back
Top