Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 1.1
.NET Framework
Reference
System.Web.Caching
 CacheItemRemovedCallback Delegate
This page is specific to
Microsoft Visual Studio 2003/.NET Framework 1.1

Other versions are also available for the following:
.NET Framework Class Library
CacheItemRemovedCallback Delegate

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

© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker