MemoryCacheEntryExtensions.SetSize(MemoryCacheEntryOptions, Int64) 方法

定義

設定快取入口值的大小。

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

參數

options
MemoryCacheEntryOptions

開啟入口尺寸的選項。

size
Int64

設定在 MemoryCacheEntryOptions.

傳回

這樣 MemoryCacheEntryOptions 可以串接額外的通話。

適用於