DefaultHttpContext.Initialize(IFeatureCollection) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用传入的功能重新初始化 类的当前即时。
public:
virtual void Initialize(Microsoft::AspNetCore::Http::Features::IFeatureCollection ^ features);
public:
void Initialize(Microsoft::AspNetCore::Http::Features::IFeatureCollection ^ features);
public virtual void Initialize (Microsoft.AspNetCore.Http.Features.IFeatureCollection features);
public void Initialize (Microsoft.AspNetCore.Http.Features.IFeatureCollection features);
abstract member Initialize : Microsoft.AspNetCore.Http.Features.IFeatureCollection -> unit
override this.Initialize : Microsoft.AspNetCore.Http.Features.IFeatureCollection -> unit
member this.Initialize : Microsoft.AspNetCore.Http.Features.IFeatureCollection -> unit
Public Overridable Sub Initialize (features As IFeatureCollection)
Public Sub Initialize (features As IFeatureCollection)
参数
- features
- IFeatureCollection
的新 DefaultHttpContext功能集。
注解
此方法允许使用者为另一个请求重复使用 DefaultHttpContext ,而不必分配新实例。