HttpResponse.AddCacheDependency Method

Note: This method is new in the .NET Framework version 2.0.

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.

Namespace: System.Web
Assembly: System.Web (in system.web.dll)

public:
void AddCacheDependency (
	... array<CacheDependency^>^ dependencies
)
public void AddCacheDependency (
	CacheDependency[] dependencies
)
public function AddCacheDependency (
	... dependencies : CacheDependency[]
)

Parameters

dependencies

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

The AddCacheDependency method allows dependencies to be created between cached responses and a CacheDependency object.

The following code example demonstrates how to create a cache dependency using the AddCacheDependency method and a CacheDependency object.

No code example is currently available or this language may not be supported.

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: