Share via


DistributedCacheExtensions.GetString(IDistributedCache, String) Yöntem

Tanım

Belirtilen önbellekten belirtilen anahtarla bir dize alır.

public:
[System::Runtime::CompilerServices::Extension]
 static System::String ^ GetString(Microsoft::Extensions::Caching::Distributed::IDistributedCache ^ cache, System::String ^ key);
public static string? GetString (this Microsoft.Extensions.Caching.Distributed.IDistributedCache cache, string key);
static member GetString : Microsoft.Extensions.Caching.Distributed.IDistributedCache * string -> string
<Extension()>
Public Function GetString (cache As IDistributedCache, key As String) As String

Parametreler

cache
IDistributedCache

Verilerin depolandığı önbellek.

key
String

Depolanan verileri almak için anahtar.

Döndürülenler

Depolanan önbellek anahtarından dize değeri.

Şunlara uygulanır