共用方式為


MiddlewareFactory.Create(Type) 方法

定義

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

public:
 virtual 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
override this.Create : Type -> Microsoft.AspNetCore.Http.IMiddleware
Public Function Create (middlewareType As Type) As IMiddleware

參數

middlewareType
Type

Type的具體 IMiddleware

傳回

IMiddleware 執行個體。

實作

適用於