Condividi tramite


CacheEntryExtensions.SetAbsoluteExpiration Metodo

Definizione

Overload

SetAbsoluteExpiration(ICacheEntry, DateTimeOffset)

Imposta una data di scadenza assoluta per la voce della cache.

SetAbsoluteExpiration(ICacheEntry, TimeSpan)

Imposta un'ora di scadenza assoluta, relativa al momento attuale.

SetAbsoluteExpiration(ICacheEntry, DateTimeOffset)

Origine:
CacheEntryExtensions.cs
Origine:
CacheEntryExtensions.cs
Origine:
CacheEntryExtensions.cs

Imposta una data di scadenza assoluta per la voce della 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

Parametri

entry
ICacheEntry

Oggetto ICacheEntry.

absolute
DateTimeOffset

Oggetto DateTimeOffset che rappresenta l'ora di scadenza, in termini assoluti.

Restituisce

Oggetto ICacheEntry per il concatenamento.

Si applica a

SetAbsoluteExpiration(ICacheEntry, TimeSpan)

Origine:
CacheEntryExtensions.cs
Origine:
CacheEntryExtensions.cs
Origine:
CacheEntryExtensions.cs

Imposta un'ora di scadenza assoluta, relativa al momento attuale.

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

Parametri

entry
ICacheEntry

Oggetto ICacheEntry.

relative
TimeSpan

Oggetto TimeSpan che rappresenta l'ora di scadenza, relativa al momento attuale.

Restituisce

Oggetto ICacheEntry per il concatenamento.

Si applica a