Bagikan melalui


MemoryCacheEntryExtensions.SetSize(MemoryCacheEntryOptions, Int64) Metode

Definisi

Mengatur ukuran nilai entri cache.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Caching::Memory::MemoryCacheEntryOptions ^ SetSize(Microsoft::Extensions::Caching::Memory::MemoryCacheEntryOptions ^ options, long size);
public static Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions SetSize (this Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions options, long size);
static member SetSize : Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions * int64 -> Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions
<Extension()>
Public Function SetSize (options As MemoryCacheEntryOptions, size As Long) As MemoryCacheEntryOptions

Parameter

options
MemoryCacheEntryOptions

Opsi untuk mengatur ukuran entri.

size
Int64

Ukuran yang akan diatur pada MemoryCacheEntryOptions.

Mengembalikan

MemoryCacheEntryOptions Sehingga panggilan tambahan dapat dirangkai.

Berlaku untuk