Sdílet prostřednictvím


ICookieManager.GetRequestCookie(HttpContext, String) Metoda

Definice

Načtěte soubor cookie s daným názvem z požadavku.

public:
 System::String ^ GetRequestCookie(Microsoft::AspNetCore::Http::HttpContext ^ context, System::String ^ key);
public string GetRequestCookie (Microsoft.AspNetCore.Http.HttpContext context, string key);
public string? GetRequestCookie (Microsoft.AspNetCore.Http.HttpContext context, string key);
abstract member GetRequestCookie : Microsoft.AspNetCore.Http.HttpContext * string -> string
Public Function GetRequestCookie (context As HttpContext, key As String) As String

Parametry

context
HttpContext
key
String

Návraty

Platí pro