Condividi tramite


DistributedCacheEntryExtensions.SetAbsoluteExpiration Metodo

Definizione

Overload

SetAbsoluteExpiration(DistributedCacheEntryOptions, DateTimeOffset)

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

SetAbsoluteExpiration(DistributedCacheEntryOptions, TimeSpan)

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

SetAbsoluteExpiration(DistributedCacheEntryOptions, DateTimeOffset)

Origine:
DistributedCacheEntryExtensions.cs
Origine:
DistributedCacheEntryExtensions.cs
Origine:
DistributedCacheEntryExtensions.cs

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

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

Parametri

options
DistributedCacheEntryOptions

Opzioni su cui eseguire le operazioni.

absolute
DateTimeOffset

Ora di scadenza, in termini assoluti.

Restituisce

Si applica a

SetAbsoluteExpiration(DistributedCacheEntryOptions, TimeSpan)

Origine:
DistributedCacheEntryExtensions.cs
Origine:
DistributedCacheEntryExtensions.cs
Origine:
DistributedCacheEntryExtensions.cs

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

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

Parametri

options
DistributedCacheEntryOptions

Opzioni su cui eseguire le operazioni.

relative
TimeSpan

Ora di scadenza, relativa al momento attuale.

Restituisce

Si applica a