CacheEntryExtensions.RegisterPostEvictionCallback 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
RegisterPostEvictionCallback(ICacheEntry, PostEvictionDelegate) |
从缓存中收回缓存项后将触发的给定回叫。 |
RegisterPostEvictionCallback(ICacheEntry, PostEvictionDelegate, Object) |
从缓存中收回缓存项后将触发的给定回叫。 |
RegisterPostEvictionCallback(ICacheEntry, PostEvictionDelegate)
- Source:
- CacheEntryExtensions.cs
- Source:
- CacheEntryExtensions.cs
- Source:
- CacheEntryExtensions.cs
- Source:
- CacheEntryExtensions.cs
从缓存中收回缓存项后将触发的给定回叫。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Caching::Memory::ICacheEntry ^ RegisterPostEvictionCallback(Microsoft::Extensions::Caching::Memory::ICacheEntry ^ entry, Microsoft::Extensions::Caching::Memory::PostEvictionDelegate ^ callback);
public static Microsoft.Extensions.Caching.Memory.ICacheEntry RegisterPostEvictionCallback (this Microsoft.Extensions.Caching.Memory.ICacheEntry entry, Microsoft.Extensions.Caching.Memory.PostEvictionDelegate callback);
static member RegisterPostEvictionCallback : Microsoft.Extensions.Caching.Memory.ICacheEntry * Microsoft.Extensions.Caching.Memory.PostEvictionDelegate -> Microsoft.Extensions.Caching.Memory.ICacheEntry
<Extension()>
Public Function RegisterPostEvictionCallback (entry As ICacheEntry, callback As PostEvictionDelegate) As ICacheEntry
参数
- entry
- ICacheEntry
- callback
- PostEvictionDelegate
在收回项后要运行的回叫。
返回
用于链接的 ICacheEntry。
适用于
RegisterPostEvictionCallback(ICacheEntry, PostEvictionDelegate, Object)
- Source:
- CacheEntryExtensions.cs
- Source:
- CacheEntryExtensions.cs
- Source:
- CacheEntryExtensions.cs
- Source:
- CacheEntryExtensions.cs
从缓存中收回缓存项后将触发的给定回叫。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Caching::Memory::ICacheEntry ^ RegisterPostEvictionCallback(Microsoft::Extensions::Caching::Memory::ICacheEntry ^ entry, Microsoft::Extensions::Caching::Memory::PostEvictionDelegate ^ callback, System::Object ^ state);
public static Microsoft.Extensions.Caching.Memory.ICacheEntry RegisterPostEvictionCallback (this Microsoft.Extensions.Caching.Memory.ICacheEntry entry, Microsoft.Extensions.Caching.Memory.PostEvictionDelegate callback, object? state);
static member RegisterPostEvictionCallback : Microsoft.Extensions.Caching.Memory.ICacheEntry * Microsoft.Extensions.Caching.Memory.PostEvictionDelegate * obj -> Microsoft.Extensions.Caching.Memory.ICacheEntry
<Extension()>
Public Function RegisterPostEvictionCallback (entry As ICacheEntry, callback As PostEvictionDelegate, state As Object) As ICacheEntry
参数
- entry
- ICacheEntry
- callback
- PostEvictionDelegate
在收回项后要运行的回叫。
- state
- Object
要传递给收回后回叫的状态。
返回
用于链接的 ICacheEntry。