RequestDelegateRouteBuilderExtensions.MapMiddlewarePost 方法
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將路由加入至 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
- builder
- IRouteBuilder
- template
- String
路由範本。
- action
- Action<IApplicationBuilder>
要套用至 的 IApplicationBuilder 動作。
此作業完成之後的 builder
參考。
產品 | 版本 |
---|---|
ASP.NET Core | 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |