RequestDelegateRouteBuilderExtensions.MapMiddlewareDelete 方法

定義

將路由加入至 IRouteBuilder ,該路由只符合指定 template 、 和 action 的 HTTP DELETE 要求。

C#
public static Microsoft.AspNetCore.Routing.IRouteBuilder MapMiddlewareDelete (this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string template, Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> action);

參數

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