SqlServerCache.Set(String, Byte[], DistributedCacheEntryOptions) Methode

Definition

Legt einen Wert mit dem angegebenen Schlüssel fest.

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)

Parameter

key
String

Eine Zeichenfolge, die den angeforderten Wert identifiziert.

value
Byte[]

Der Wert, der im Cache festgelegt werden soll.

options
DistributedCacheEntryOptions

Die Cacheoptionen für den Wert.

Implementiert

Gilt für: