MapWhenMiddleware(RequestDelegate, MapWhenOptions) 构造函数

定义

创建 MapWhenMiddleware 的新实例。

public:
 MapWhenMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::Builder::Extensions::MapWhenOptions ^ options);
public MapWhenMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Builder.Extensions.MapWhenOptions options);
new Microsoft.AspNetCore.Builder.Extensions.MapWhenMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Builder.Extensions.MapWhenOptions -> Microsoft.AspNetCore.Builder.Extensions.MapWhenMiddleware
Public Sub New (next As RequestDelegate, options As MapWhenOptions)

参数

next
RequestDelegate

表示请求管道中的下一个中间件的委托。

options
MapWhenOptions

中间件选项。

适用于