Condividi tramite


EndpointRouteBuilderExtensions.MapMethods Metodo

Definizione

Overload

MapMethods(IEndpointRouteBuilder, String, IEnumerable<String>, RequestDelegate)

Aggiunge un RouteEndpoint oggetto all'oggetto IEndpointRouteBuilder che corrisponde alle richieste HTTP per i metodi e il modello HTTP specificati.

MapMethods(IEndpointRouteBuilder, String, IEnumerable<String>, Delegate)

Aggiunge un RouteEndpoint oggetto all'oggetto IEndpointRouteBuilder che corrisponde alle richieste HTTP per i metodi e il modello HTTP specificati.

MapMethods(IEndpointRouteBuilder, String, IEnumerable<String>, RequestDelegate)

Origine:
EndpointRouteBuilderExtensions.cs

Aggiunge un RouteEndpoint oggetto all'oggetto IEndpointRouteBuilder che corrisponde alle richieste HTTP per i metodi e il modello HTTP specificati.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IEndpointConventionBuilder ^ MapMethods(Microsoft::AspNetCore::Routing::IEndpointRouteBuilder ^ endpoints, System::String ^ pattern, System::Collections::Generic::IEnumerable<System::String ^> ^ httpMethods, Microsoft::AspNetCore::Http::RequestDelegate ^ requestDelegate);
public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapMethods (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, System.Collections.Generic.IEnumerable<string> httpMethods, Microsoft.AspNetCore.Http.RequestDelegate requestDelegate);
static member MapMethods : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * string * seq<string> * Microsoft.AspNetCore.Http.RequestDelegate -> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder
<Extension()>
Public Function MapMethods (endpoints As IEndpointRouteBuilder, pattern As String, httpMethods As IEnumerable(Of String), requestDelegate As RequestDelegate) As IEndpointConventionBuilder

Parametri

endpoints
IEndpointRouteBuilder

Oggetto IEndpointRouteBuilder da aggiungere alla route.

pattern
String

Modello di route.

httpMethods
IEnumerable<String>

Metodi HTTP corrispondenti all'endpoint.

requestDelegate
RequestDelegate

Delegato eseguito quando l'endpoint è corrispondente.

Restituisce

Oggetto IEndpointConventionBuilder che può essere usato per personalizzare ulteriormente l'endpoint.

Si applica a

MapMethods(IEndpointRouteBuilder, String, IEnumerable<String>, Delegate)

Origine:
EndpointRouteBuilderExtensions.cs

Aggiunge un RouteEndpoint oggetto all'oggetto IEndpointRouteBuilder che corrisponde alle richieste HTTP per i metodi e il modello HTTP specificati.

public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder MapMethods (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, System.Collections.Generic.IEnumerable<string> httpMethods, Delegate handler);
static member MapMethods : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * string * seq<string> * Delegate -> Microsoft.AspNetCore.Builder.RouteHandlerBuilder
<Extension()>
Public Function MapMethods (endpoints As IEndpointRouteBuilder, pattern As String, httpMethods As IEnumerable(Of String), handler As Delegate) As RouteHandlerBuilder

Parametri

endpoints
IEndpointRouteBuilder

Oggetto IEndpointRouteBuilder da aggiungere alla route.

pattern
String

Modello di route.

httpMethods
IEnumerable<String>

Metodi HTTP corrispondenti all'endpoint.

handler
Delegate

Delegato eseguito quando l'endpoint è corrispondente.

Restituisce

Oggetto RouteHandlerBuilder che può essere usato per personalizzare ulteriormente l'endpoint.

Si applica a