MemoryCacheEntryExtensions.SetAbsoluteExpiration Metod

Definition

Överlagringar

Name Description
SetAbsoluteExpiration(MemoryCacheEntryOptions, DateTimeOffset)

Anger ett absolut utgångsdatum för cacheposten.

SetAbsoluteExpiration(MemoryCacheEntryOptions, TimeSpan)

Anger en absolut förfallotid i förhållande till nu.

SetAbsoluteExpiration(MemoryCacheEntryOptions, DateTimeOffset)

Källa:
MemoryCacheEntryExtensions.cs
Källa:
MemoryCacheEntryExtensions.cs
Källa:
MemoryCacheEntryExtensions.cs
Källa:
MemoryCacheEntryExtensions.cs

Anger ett absolut utgångsdatum för cacheposten.

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

Parametrar

absolute
DateTimeOffset

Förfallotiden, i absoluta termer.

Returer

MemoryCacheEntryOptions att ytterligare anrop kan länkas.

Gäller för

SetAbsoluteExpiration(MemoryCacheEntryOptions, TimeSpan)

Källa:
MemoryCacheEntryExtensions.cs
Källa:
MemoryCacheEntryExtensions.cs
Källa:
MemoryCacheEntryExtensions.cs
Källa:
MemoryCacheEntryExtensions.cs

Anger en absolut förfallotid i förhållande till nu.

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

Parametrar

relative
TimeSpan

Förfallotiden i förhållande till nu.

Returer

MemoryCacheEntryOptions att ytterligare anrop kan länkas.

Gäller för