EndpointRouteBuilderExtensions.MapPatch 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
MapPatch(IEndpointRouteBuilder, String, RequestDelegate) |
RouteEndpoint将 添加到IEndpointRouteBuilder与指定模式的 HTTP PATCH 请求匹配的 。 |
MapPatch(IEndpointRouteBuilder, String, Delegate) |
RouteEndpoint将 添加到IEndpointRouteBuilder与指定模式的 HTTP PATCH 请求匹配的 。 |
MapPatch(IEndpointRouteBuilder, String, RequestDelegate)
RouteEndpoint将 添加到IEndpointRouteBuilder与指定模式的 HTTP PATCH 请求匹配的 。
public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapPatch (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, Microsoft.AspNetCore.Http.RequestDelegate requestDelegate);
static member MapPatch : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * string * Microsoft.AspNetCore.Http.RequestDelegate -> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder
<Extension()>
Public Function MapPatch (endpoints As IEndpointRouteBuilder, pattern As String, requestDelegate As RequestDelegate) As IEndpointConventionBuilder
参数
- endpoints
- IEndpointRouteBuilder
要 IEndpointRouteBuilder 向其添加路由的 。
- pattern
- String
路由模式。
- requestDelegate
- RequestDelegate
终结点匹配时执行的委托。
返回
可用于 IEndpointConventionBuilder 进一步自定义终结点的 。
适用于
MapPatch(IEndpointRouteBuilder, String, Delegate)
RouteEndpoint将 添加到IEndpointRouteBuilder与指定模式的 HTTP PATCH 请求匹配的 。
public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder MapPatch (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, Delegate handler);
static member MapPatch : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * string * Delegate -> Microsoft.AspNetCore.Builder.RouteHandlerBuilder
<Extension()>
Public Function MapPatch (endpoints As IEndpointRouteBuilder, pattern As String, handler As Delegate) As RouteHandlerBuilder
参数
- endpoints
- IEndpointRouteBuilder
要 IEndpointRouteBuilder 向其添加路由的 。
- pattern
- String
路由模式。
返回
可用于 RouteHandlerBuilder 进一步自定义终结点的 。