This documentation is archived and is not being maintained.
CacheItemRemovedCallback Delegate
.NET Framework 1.1
Defines a callback method for notifying applications when a cached item is removed from the Cache.
[Visual Basic] <Serializable> Public Delegate Sub CacheItemRemovedCallback( _ ByVal key As String, _ ByVal value As Object, _ ByVal reason As CacheItemRemovedReason _ ) [C#] [Serializable] public delegate void CacheItemRemovedCallback( string key, object value, CacheItemRemovedReason reason ); [C++] [Serializable] 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.
- key
- The index location for the item removed from the cache.
- value
- The Object item removed from the cache.
- reason
- The reason the item was removed from the cache, as specified by the CacheItemRemovedReason enumeration.
Requirements
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
Show: