CacheEntryExtensions.SetOptions(ICacheEntry, MemoryCacheEntryOptions) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Applies the values of an existing MemoryCacheEntryOptions to the entry.
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
Parameters
- entry
- ICacheEntry
The ICacheEntry.
- options
- MemoryCacheEntryOptions
Set the values of these options on the entry
.
Returns
The ICacheEntry for chaining.
Applies to
Bekerjasama dengan kami di GitHub
Sumber untuk kandungan ini boleh didapati di GitHub, di mana anda juga boleh mencipta dan menyemak isu dan menarik permintaan. Untuk maklumat lanjut, lihat panduan penyumbang kami.