MemoryDistributedCache.Set Methode

Definitie

Hiermee stelt u het opgegeven item in dat is gekoppeld aan een sleutel in de IMemoryCache bytematrix.

public:
 virtual void Set(System::String ^ key, cli::array <System::Byte> ^ value, Microsoft::Extensions::Caching::Distributed::DistributedCacheEntryOptions ^ options);
public void Set(string key, byte[] value, Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options);
abstract member Set : string * byte[] * Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions -> unit
override this.Set : string * byte[] * Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions -> unit
Public Sub Set (key As String, value As Byte(), options As DistributedCacheEntryOptions)

Parameters

key
String

De sleutel van het item dat moet worden ingesteld.

value
Byte[]

De bytematrixwaarde van het item dat moet worden ingesteld.

options
DistributedCacheEntryOptions

De cacheopties voor het item dat moet worden ingesteld.

Implementeringen

Van toepassing op