共用方式為


IMiddlewareFactory.Create(Type) 方法

定義

為每個要求建立中介軟體實例。

public:
 Microsoft::AspNetCore::Http::IMiddleware ^ Create(Type ^ middlewareType);
public Microsoft.AspNetCore.Http.IMiddleware Create (Type middlewareType);
public Microsoft.AspNetCore.Http.IMiddleware? Create (Type middlewareType);
abstract member Create : Type -> Microsoft.AspNetCore.Http.IMiddleware
Public Function Create (middlewareType As Type) As IMiddleware

參數

middlewareType
Type

Type IMiddleware 的具體 。

傳回

IMiddleware 執行個體。

適用於