HttpResponse::AddCacheItemDependencies Method (ArrayList^)


Makes the validity of a cached response dependent on other items in the cache.

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

void AddCacheItemDependencies(
	ArrayList^ cacheKeys


Type: System.Collections::ArrayList^

The ArrayList that contains the keys of the items that the current cached response is dependent upon.

When the items referred to in the cacheKeys parameter are removed from the cache, the cached response of the current item is not valid.

The following example demonstrates how to use an ASP.NET page that is output cached. The code for the page creates an ArrayList object of keys that are associated with items that are stored in the Cache object. Next, the code passes the ArrayList as the parameter in a call to the AddCacheItemDependencies method. This makes the output cached response not valid, if any of the files specified in the ArrayList change.

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

.NET Framework
Available since 1.1
Return to top