共用方式為


CacheEntryExtensions.SetValue(ICacheEntry, Object) 方法

定義

設定快取項目的值。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Caching::Memory::ICacheEntry ^ SetValue(Microsoft::Extensions::Caching::Memory::ICacheEntry ^ entry, System::Object ^ value);
public static Microsoft.Extensions.Caching.Memory.ICacheEntry SetValue (this Microsoft.Extensions.Caching.Memory.ICacheEntry entry, object? value);
static member SetValue : Microsoft.Extensions.Caching.Memory.ICacheEntry * obj -> Microsoft.Extensions.Caching.Memory.ICacheEntry
<Extension()>
Public Function SetValue (entry As ICacheEntry, value As Object) As ICacheEntry

參數

value
Object

要在 entry 中設定的值。

傳回

用於鏈結的 ICacheEntry

適用於