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