ChunkingCookieManager.GetRequestCookie(HttpContext, String) 方法

定义

获取重新组合的 Cookie。 正常返回无块 Cookie。 缺少区块的 Cookie 仅返回其“chunks-XX”标头。

public:
 virtual 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
override this.GetRequestCookie : Microsoft.AspNetCore.Http.HttpContext * string -> string
Public Function GetRequestCookie (context As HttpContext, key As String) As String

参数

context
HttpContext
key
String

返回

重新组合的 Cookie(如果存在);如果不存在,则返回 null。

实现

适用于