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 上下文对象时要设置的选项。

返回

实现

适用于