共用方式為


DefaultHttpContext.Initialize(IFeatureCollection) 方法

定義

使用傳入的功能,重新初始化 類別的目前立即。

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 ,而不需要配置新的實例。

適用於