HttpResponse.AddFileDependency Method (String)
.NET Framework (current version)
Adds a single file name to the collection of file names on which the current response is dependent.
Assembly: System.Web (in System.Web.dll)
Parameters
- filename
-
Type:
System.String
The name of the file to add.
When you use the AddFileDependency method to add a file dependency, you must also specify output caching programmatically or declaratively. For example, to specify output caching declaratively, use the directive. For more information, see How to: Cache Page Output with File Dependencies.
.NET Framework
Available since 1.1
Available since 1.1
Show: