This documentation is archived and is not being maintained.

HttpResponse.AddCacheItemDependency Method

Makes the validity of a cached item dependent on another item in the cache.

[Visual Basic]
Public Sub AddCacheItemDependency( _
   ByVal cacheKey As String _
)
[C#]
public void AddCacheItemDependency(
 string cacheKey
);
[C++]
public: void AddCacheItemDependency(
 String* cacheKey
);
[JScript]
public function AddCacheItemDependency(
   cacheKey : String
);

Parameters

cacheKey
The key of the item that the cached response is dependent upon.

Remarks

When the item corresponding to cacheKey is removed from the cache, the cached response of the current item is invalid.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

HttpResponse Class | HttpResponse Members | System.Web Namespace

Show: