共用方式為


HttpContextAccessor.HttpContext 屬性

定義

取得或設定目前的 HttpContext 。 如果沒有使用中 HttpContext ,則傳 null 回 。

public:
 property Microsoft::AspNetCore::Http::HttpContext ^ HttpContext { Microsoft::AspNetCore::Http::HttpContext ^ get(); void set(Microsoft::AspNetCore::Http::HttpContext ^ value); };
public Microsoft.AspNetCore.Http.HttpContext HttpContext { get; set; }
public Microsoft.AspNetCore.Http.HttpContext? HttpContext { get; set; }
member this.HttpContext : Microsoft.AspNetCore.Http.HttpContext with get, set
Public Property HttpContext As HttpContext

屬性值

實作

適用於