CacheEntryUpdateCallback 委托
定义
定义对某个方法的引用,在即将从缓存中移除某个缓存项时将调用该方法。Defines a reference to a method that is invoked when a cache entry is about to be removed from the cache.
public delegate void CacheEntryUpdateCallback(CacheEntryUpdateArguments ^ arguments);
public delegate void CacheEntryUpdateCallback(CacheEntryUpdateArguments arguments);
type CacheEntryUpdateCallback = delegate of CacheEntryUpdateArguments -> unit
Public Delegate Sub CacheEntryUpdateCallback(arguments As CacheEntryUpdateArguments)
参数
- arguments
- CacheEntryUpdateArguments
有关即将从缓存中移除的项的信息。The information about the entry that is about to be removed from the cache.
注解
对象中包含有关要删除的缓存项的信息 CacheEntryUpdateArguments 。Information about a cache entry to be removed is contained in a CacheEntryUpdateArguments object. CacheEntryUpdateArguments对象传递给 CacheEntryUpdateCallback 委托。A CacheEntryUpdateArguments object is passed to the CacheEntryUpdateCallback delegate. 实现委托的方法 CacheEntryUpdateCallback 可以将更新的缓存项值传递回缓存实现。The method that implements the CacheEntryUpdateCallback delegate can pass an updated cache entry value back to the cache implementation. 更新的缓存项会替换即将删除的缓存项。The updated cache entry replaces the cache item that is about to be removed.
扩展方法
| GetMethodInfo(Delegate) |
获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate. |