共用方式為


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,以便鏈結其他呼叫。

適用於