CacheItemPolicy.RemovedCallback 属性
定义
获取或设置对 CacheEntryRemovedCallback 委托的引用,在从缓存中移除某个项后将调用该委托。Gets or sets a reference to a CacheEntryRemovedCallback delegate that is called after an entry is removed from the cache.
public:
property System::Runtime::Caching::CacheEntryRemovedCallback ^ RemovedCallback { System::Runtime::Caching::CacheEntryRemovedCallback ^ get(); void set(System::Runtime::Caching::CacheEntryRemovedCallback ^ value); };
public System.Runtime.Caching.CacheEntryRemovedCallback RemovedCallback { get; set; }
member this.RemovedCallback : System.Runtime.Caching.CacheEntryRemovedCallback with get, set
Public Property RemovedCallback As CacheEntryRemovedCallback
属性值
对由缓存实现调用的委托的引用。A reference to a delegate that is called by a cache implementation.
注解
在从缓存中移除某个缓存项后,该缓存将调用由该属性引用的回调对象 RemovedCallback 。After a cache entry has been removed from the cache, the cache invokes the callback object that is referenced by the RemovedCallback property. 缓存实现可以使用此回调通知调用方法缓存项已被移除。A cache implementation can use this callback to notify the calling method that a cache entry has been removed.