RequestDelegateRouteBuilderExtensions.MapMiddlewarePost 方法

定义

向 添加一个路由,该路由 IRouteBuilder 仅匹配给定 template的 、 和 action的 HTTP POST 请求。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Routing::IRouteBuilder ^ MapMiddlewarePost(Microsoft::AspNetCore::Routing::IRouteBuilder ^ builder, System::String ^ template, Action<Microsoft::AspNetCore::Builder::IApplicationBuilder ^> ^ action);
public static Microsoft.AspNetCore.Routing.IRouteBuilder MapMiddlewarePost (this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string template, Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> action);
static member MapMiddlewarePost : Microsoft.AspNetCore.Routing.IRouteBuilder * string * Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> -> Microsoft.AspNetCore.Routing.IRouteBuilder
<Extension()>
Public Function MapMiddlewarePost (builder As IRouteBuilder, template As String, action As Action(Of IApplicationBuilder)) As IRouteBuilder

参数

template
String

路由模板。

action
Action<IApplicationBuilder>

要应用于 的操作 IApplicationBuilder

返回

此操作完成后对 builder 的引用。

适用于