MemoryCacheEntryExtensions.RegisterPostEvictionCallback Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RegisterPostEvictionCallback(MemoryCacheEntryOptions, PostEvictionDelegate) |
The given callback will be fired after the cache entry is evicted from the cache. |
RegisterPostEvictionCallback(MemoryCacheEntryOptions, PostEvictionDelegate, Object) |
The given callback will be fired after the cache entry is evicted from the cache. |
RegisterPostEvictionCallback(MemoryCacheEntryOptions, PostEvictionDelegate)
The given callback will be fired after the cache entry is evicted from the cache.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Caching::Memory::MemoryCacheEntryOptions ^ RegisterPostEvictionCallback(Microsoft::Extensions::Caching::Memory::MemoryCacheEntryOptions ^ options, Microsoft::Extensions::Caching::Memory::PostEvictionDelegate ^ callback);
public static Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions RegisterPostEvictionCallback (this Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions options, Microsoft.Extensions.Caching.Memory.PostEvictionDelegate callback);
static member RegisterPostEvictionCallback : Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions * Microsoft.Extensions.Caching.Memory.PostEvictionDelegate -> Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions
<Extension()>
Public Function RegisterPostEvictionCallback (options As MemoryCacheEntryOptions, callback As PostEvictionDelegate) As MemoryCacheEntryOptions
Parameters
- options
- MemoryCacheEntryOptions
- callback
- PostEvictionDelegate
The callback to register for calling after an entry is evicted.
Returns
The MemoryCacheEntryOptions so that additional calls can be chained.
Applies to
RegisterPostEvictionCallback(MemoryCacheEntryOptions, PostEvictionDelegate, Object)
The given callback will be fired after the cache entry is evicted from the cache.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Caching::Memory::MemoryCacheEntryOptions ^ RegisterPostEvictionCallback(Microsoft::Extensions::Caching::Memory::MemoryCacheEntryOptions ^ options, Microsoft::Extensions::Caching::Memory::PostEvictionDelegate ^ callback, System::Object ^ state);
public static Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions RegisterPostEvictionCallback (this Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions options, Microsoft.Extensions.Caching.Memory.PostEvictionDelegate callback, object? state);
static member RegisterPostEvictionCallback : Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions * Microsoft.Extensions.Caching.Memory.PostEvictionDelegate * obj -> Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions
<Extension()>
Public Function RegisterPostEvictionCallback (options As MemoryCacheEntryOptions, callback As PostEvictionDelegate, state As Object) As MemoryCacheEntryOptions
Parameters
- options
- MemoryCacheEntryOptions
- callback
- PostEvictionDelegate
The callback to register for calling after an entry is evicted.
- state
- Object
The state to pass to the callback.
Returns
The MemoryCacheEntryOptions so that additional calls can be chained.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort: Gedurende 2024 worden GitHub Issues uitgefaseerd als het feedbackmechanisme voor inhoud. Dit wordt vervangen door een nieuw feedbacksysteem. Ga voor meer informatie naar:Feedback verzenden en bekijken voor