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,以便可以链接其他调用。

适用于