System.Web.HttpResponse.AddCacheDependency Method

Associates a set of cache dependencies with the response to facilitate invalidation of the response if it is stored in the output cache and the specified dependencies change.

Syntax

public void AddCacheDependency (System.Web.Caching.CacheDependency[] dependencies)

Parameters

dependencies
A file, cache key, or System.Web.Caching.CacheDependency to add to the list of application dependencies.

Remarks

The HttpResponse.AddCacheDependency(System.Web.Caching.CacheDependency[]) method allows dependencies to be created between cached responses and a System.Web.Caching.CacheDependency object.

Requirements

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