Bagikan melalui


CacheEntryExtensions.SetAbsoluteExpiration Metode

Definisi

Overload

SetAbsoluteExpiration(ICacheEntry, DateTimeOffset)

Mengatur tanggal kedaluwarsa absolut untuk entri cache.

SetAbsoluteExpiration(ICacheEntry, TimeSpan)

Mengatur waktu kedaluwarsa absolut, relatif terhadap sekarang.

SetAbsoluteExpiration(ICacheEntry, DateTimeOffset)

Sumber:
CacheEntryExtensions.cs
Sumber:
CacheEntryExtensions.cs
Sumber:
CacheEntryExtensions.cs

Mengatur tanggal kedaluwarsa absolut untuk entri cache.

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

Parameter

absolute
DateTimeOffset

mewakili DateTimeOffset waktu kedaluwarsa dalam istilah absolut.

Mengembalikan

Untuk ICacheEntry penautan.

Berlaku untuk

SetAbsoluteExpiration(ICacheEntry, TimeSpan)

Sumber:
CacheEntryExtensions.cs
Sumber:
CacheEntryExtensions.cs
Sumber:
CacheEntryExtensions.cs

Mengatur waktu kedaluwarsa absolut, relatif terhadap sekarang.

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

Parameter

relative
TimeSpan

yang TimeSpan mewakili waktu kedaluwarsa relatif terhadap sekarang.

Mengembalikan

Untuk ICacheEntry penautan.

Berlaku untuk