共用方式為


CacheEntryExtensions.SetSize(ICacheEntry, Int64) 方法

定義

設定快取項目值的大小。

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

參數

size
Int64

要對 entry 設定的大小。

傳回

用於鏈結的 ICacheEntry

適用於