Partilhar via


MemoryCacheEntryExtensions.SetPriority Método

Definição

Define a prioridade para manter a entrada de cache no cache durante uma limpeza com token de pressão de memória.

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

Parâmetros

options
MemoryCacheEntryOptions

A opção na qual definir a prioridade.

priority
CacheItemPriority

A CacheItemPriority a ser definida na opção.

Retornos

O MemoryCacheEntryOptions para que chamadas adicionais possam ser encadeadas.

Aplica-se a