Compartilhar via


CacheEntryExtensions.SetPriority(ICacheEntry, CacheItemPriority) 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::ICacheEntry ^ SetPriority(Microsoft::Extensions::Caching::Memory::ICacheEntry ^ entry, Microsoft::Extensions::Caching::Memory::CacheItemPriority priority);
public static Microsoft.Extensions.Caching.Memory.ICacheEntry SetPriority (this Microsoft.Extensions.Caching.Memory.ICacheEntry entry, Microsoft.Extensions.Caching.Memory.CacheItemPriority priority);
static member SetPriority : Microsoft.Extensions.Caching.Memory.ICacheEntry * Microsoft.Extensions.Caching.Memory.CacheItemPriority -> Microsoft.Extensions.Caching.Memory.ICacheEntry
<Extension()>
Public Function SetPriority (entry As ICacheEntry, priority As CacheItemPriority) As ICacheEntry

Parâmetros

entry
ICacheEntry

A entrada para a qual definir a prioridade.

priority
CacheItemPriority

A CacheItemPriority a ser definida na entrada.

Retornos

O ICacheEntry para encadeamento.

Aplica-se a