共用方式為


HttpContextFactory.Create(IFeatureCollection) 方法

定義

使用傳入的選項,初始化 DefaultHttpCoNtext 類別的新實例。

public:
 virtual 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
override this.Create : Microsoft.AspNetCore.Http.Features.IFeatureCollection -> Microsoft.AspNetCore.Http.HttpContext
Public Function Create (featureCollection As IFeatureCollection) As HttpContext

參數

featureCollection
IFeatureCollection

具現化預設 HTTP 內容物件時要設定的選項。

傳回

實作

適用於