CacheEntryExtensions.AddExpirationToken(ICacheEntry, IChangeToken) Metodo

Definizione

La voce della cache scade se l'oggetto IChangeToken specificato scade.Expire the cache entry if the given IChangeToken expires.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Caching::Memory::ICacheEntry ^ AddExpirationToken(Microsoft::Extensions::Caching::Memory::ICacheEntry ^ entry, Microsoft::Extensions::Primitives::IChangeToken ^ expirationToken);
public static Microsoft.Extensions.Caching.Memory.ICacheEntry AddExpirationToken (this Microsoft.Extensions.Caching.Memory.ICacheEntry entry, Microsoft.Extensions.Primitives.IChangeToken expirationToken);
static member AddExpirationToken : Microsoft.Extensions.Caching.Memory.ICacheEntry * Microsoft.Extensions.Primitives.IChangeToken -> Microsoft.Extensions.Caching.Memory.ICacheEntry
<Extension()>
Public Function AddExpirationToken (entry As ICacheEntry, expirationToken As IChangeToken) As ICacheEntry

Parametri

entry
ICacheEntry

Oggetto ICacheEntry.The ICacheEntry.

expirationToken
IChangeToken

Oggetto IChangeToken che causa la scadenza della voce della cache.The IChangeToken that causes the cache entry to expire.

Restituisce

Oggetto ICacheEntry per il concatenamento.The ICacheEntry for chaining.

Si applica a