CacheItemRemovedCallback

CacheItemRemovedCallbackserializable

System.Web.Caching (system.web.dll)delegate

Functions with the CacheItemRemovedCallback signature can be used to respond to the onRemoveCallback when an item is dropped from the cache. For example, this could allow you to perform related cleanup tasks. You are provided with the cache object, its key, and the reason why it was removed (using the CacheItemRemovedReason enumeration).

To specify that a given method should be used for the onRemoveCallback, create a CacheItemRemovedCallback delegate that points to the method, and pass it as an argument to the Cache.Insert( ) method.

public delegate void CacheItemRemovedCallback(string key, object value, CacheItemRemovedReason reason);

Passed To

Cache.{Add( ), Insert( )}



ASP. NET in a Nutshell
ASP.NET in a Nutshell, Second Edition
ISBN: 0596005202
EAN: 2147483647
Year: 2003
Pages: 873

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net