HttpResponse::AddFileDependencies Method (ArrayList)
Adds a group of file names to the collection of file names on which the current response is dependent.
Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Parameters
- filenames
- Type: System.Collections::ArrayList
The collection of files to add.
The following example is an ASP.NET page that is output cached. The code for the page creates an ArrayList of file paths, and then passes the ArrayList as the parameter in a call to the AddFileDependencies method. This makes the output cached response invalid if any of the files specified in the ArrayList changes.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.