共用方式為


CacheEntryExtensions.SetOptions(ICacheEntry, MemoryCacheEntryOptions) 方法

定義

將現有的 MemoryCacheEntryOptions 值套用至項目。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Caching::Memory::ICacheEntry ^ SetOptions(Microsoft::Extensions::Caching::Memory::ICacheEntry ^ entry, Microsoft::Extensions::Caching::Memory::MemoryCacheEntryOptions ^ options);
public static Microsoft.Extensions.Caching.Memory.ICacheEntry SetOptions (this Microsoft.Extensions.Caching.Memory.ICacheEntry entry, Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions options);
static member SetOptions : Microsoft.Extensions.Caching.Memory.ICacheEntry * Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions -> Microsoft.Extensions.Caching.Memory.ICacheEntry
<Extension()>
Public Function SetOptions (entry As ICacheEntry, options As MemoryCacheEntryOptions) As ICacheEntry

參數

options
MemoryCacheEntryOptions

entry 中設定這些選項的值。

傳回

用於鏈結的 ICacheEntry

適用於