共用方式為


IHttpApplication<TContext>.CreateContext(IFeatureCollection) 方法

定義

建立指定 HTTP 功能的集合的 TCoNtext。

public:
 TContext CreateContext(Microsoft::AspNetCore::Http::Features::IFeatureCollection ^ contextFeatures);
public TContext CreateContext (Microsoft.AspNetCore.Http.Features.IFeatureCollection contextFeatures);
abstract member CreateContext : Microsoft.AspNetCore.Http.Features.IFeatureCollection -> 'Context
Public Function CreateContext (contextFeatures As IFeatureCollection) As TContext

參數

contextFeatures
IFeatureCollection

要用來建立 TCoNtext 的 HTTP 功能集合。

傳回

TContext

建立的 TCoNtext。

適用於