EndpointRouteBuilderExtensions.MapPatch Metoda

Definice

Přetížení

MapPatch(IEndpointRouteBuilder, String, RequestDelegate)

Přidá do RouteEndpoint objektu IEndpointRouteBuilder , který odpovídá požadavkům HTTP PATCH pro zadaný vzor.

MapPatch(IEndpointRouteBuilder, String, Delegate)

Přidá do RouteEndpoint objektu IEndpointRouteBuilder , který odpovídá požadavkům HTTP PATCH pro zadaný vzor.

MapPatch(IEndpointRouteBuilder, String, RequestDelegate)

Přidá do RouteEndpoint objektu IEndpointRouteBuilder , který odpovídá požadavkům HTTP PATCH pro zadaný vzor.

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

Parametry

endpoints
IEndpointRouteBuilder

Chcete-li IEndpointRouteBuilder přidat trasu do.

pattern
String

Vzor trasy.

requestDelegate
RequestDelegate

Delegát se spustí při spárování koncového bodu.

Návraty

A IEndpointConventionBuilder , který lze použít k dalšímu přizpůsobení koncového bodu.

Platí pro

MapPatch(IEndpointRouteBuilder, String, Delegate)

Přidá do RouteEndpoint objektu IEndpointRouteBuilder , který odpovídá požadavkům HTTP PATCH pro zadaný vzor.

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

Parametry

endpoints
IEndpointRouteBuilder

Chcete-li IEndpointRouteBuilder přidat trasu do.

pattern
String

Vzor trasy.

handler
Delegate

Provede se Delegate při porovnávání koncového bodu.

Návraty

A RouteHandlerBuilder , který lze použít k dalšímu přizpůsobení koncového bodu.

Platí pro