System.Web.HttpResponse.AddFileDependency Method

Adds a single file name to the collection of file names on which the current response is dependent.

Syntax

public void AddFileDependency (string filename)

Parameters

filename
The name of the file to add.

Remarks

When you use the HttpResponse.AddFileDependency(string) method to add a file dependency, you must also specify output caching programmatically or declaratively. For example, to specify output caching declaratively, use the @ OutputCache directive. For more information, see How to: Cache Page Output with File Dependencies.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0