ICookieManager.GetRequestCookie(HttpContext, String) 方法

定義

從要求擷取指定名稱的 Cookie。

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

參數

context
HttpContext
key
String

傳回

適用於