Bagikan melalui


MemoryCacheEntryExtensions.AddExpirationToken Metode

Definisi

Kedaluwarsa entri cache jika yang diberikan IChangeToken kedaluwarsa.

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

Parameter

expirationToken
IChangeToken

Yang IChangeToken menyebabkan entri cache kedaluwarsa.

Mengembalikan

MemoryCacheEntryOptions Sehingga panggilan tambahan dapat dirangkai.

Berlaku untuk