共用方式為


IHttpContextFactory.Create(IFeatureCollection) 方法

定義

HttpContext為指定的 HTTP 功能集建立實例。

public:
 Microsoft::AspNetCore::Http::HttpContext ^ Create(Microsoft::AspNetCore::Http::Features::IFeatureCollection ^ featureCollection);
public Microsoft.AspNetCore.Http.HttpContext Create (Microsoft.AspNetCore.Http.Features.IFeatureCollection featureCollection);
abstract member Create : Microsoft.AspNetCore.Http.Features.IFeatureCollection -> Microsoft.AspNetCore.Http.HttpContext
Public Function Create (featureCollection As IFeatureCollection) As HttpContext

參數

featureCollection
IFeatureCollection

要設定在所建立實例上的 HTTP 功能集合。

傳回

HttpContext 執行個體。

適用於