This documentation is archived and is not being maintained.

CacheItemRemovedCallback Delegate

Defines a callback method for notifying applications when a cached item is removed from the Cache.

[Visual Basic]
Public Delegate Sub CacheItemRemovedCallback( _
   ByVal key As String, _
   ByVal value As Object, _
   ByVal reason As CacheItemRemovedReason _
public delegate void CacheItemRemovedCallback(
   string key,
   object value,
   CacheItemRemovedReason reason
public __gc __delegate void CacheItemRemovedCallback(
   String* key,
   Object* value,
   CacheItemRemovedReason reason

[JScript] In JScript, you can use the delegates in the .NET Framework, but you cannot define your own.

Parameters [Visual Basic, C#, C++]

The declaration of your callback method must have the same parameters as the CacheItemRemovedCallback delegate declaration.

The index location for the item removed from the cache.
The Object item removed from the cache.
The reason the item was removed from the cache, as specified by the CacheItemRemovedReason enumeration.


Namespace: System.Web.Caching

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

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

See Also

System.Web.Caching Namespace | Cache | CacheItemRemovedReason