Bagikan melalui


MemoryCacheEntryExtensions.SetPriority Metode

Definisi

Mengatur prioritas untuk menyimpan entri cache dalam cache selama pembersihan token tekanan memori.

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

Parameter

options
MemoryCacheEntryOptions

Opsi untuk mengatur prioritas.

priority
CacheItemPriority

untuk CacheItemPriority mengatur pada opsi .

Mengembalikan

MemoryCacheEntryOptions Sehingga panggilan tambahan dapat dirangkai.

Berlaku untuk