다음을 통해 공유


CacheEntryExtensions.SetPriority(ICacheEntry, CacheItemPriority) 메서드

정의

메모리 압력 토큰 정리 중에 캐시 항목을 캐시에 유지하기 위한 우선 순위를 설정합니다.

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

매개 변수

entry
ICacheEntry

우선 순위를 설정할 항목입니다.

priority
CacheItemPriority

항목에 설정할 CacheItemPriority입니다.

반환

연결할 ICacheEntry입니다.

적용 대상