MemoryCacheEntryExtensions.AddExpirationToken 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.
Expires the cache entry if the given IChangeToken expires.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Caching::Memory::MemoryCacheEntryOptions ^ AddExpirationToken(Microsoft::Extensions::Caching::Memory::MemoryCacheEntryOptions ^ options, Microsoft::Extensions::Primitives::IChangeToken ^ expirationToken);
public static Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions AddExpirationToken (this Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions options, Microsoft.Extensions.Primitives.IChangeToken expirationToken);
static member AddExpirationToken : Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions * Microsoft.Extensions.Primitives.IChangeToken -> Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions
<Extension()>
Public Function AddExpirationToken (options As MemoryCacheEntryOptions, expirationToken As IChangeToken) As MemoryCacheEntryOptions
Parameters
- options
- MemoryCacheEntryOptions
- expirationToken
- IChangeToken
The IChangeToken that causes the cache entry to expire.
Returns
The MemoryCacheEntryOptions so that additional calls can be chained.
Applies to
Dolgozzon együtt velünk a GitHubon
A tartalom forrása a GitHubon található, ahol létrehozhat és áttekinthet problémákat és lekéréses kérelmeket is. További információért tekintse meg a közreműködői útmutatónkat.