EndpointRouteBuilderExtensions.MapGet Metodo

Definizione

Overload

MapGet(IEndpointRouteBuilder, String, Delegate)

Aggiunge un RouteEndpoint oggetto all'oggetto IEndpointRouteBuilder che corrisponde alle richieste HTTP GET per il modello specificato.

MapGet(IEndpointRouteBuilder, String, RequestDelegate)

Aggiunge un RouteEndpoint oggetto all'oggetto IEndpointRouteBuilder che corrisponde alle richieste HTTP GET per il modello specificato.

MapGet(IEndpointRouteBuilder, String, Delegate)

Aggiunge un RouteEndpoint oggetto all'oggetto IEndpointRouteBuilder che corrisponde alle richieste HTTP GET per il modello specificato.

public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder MapGet (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, Delegate handler);
static member MapGet : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * string * Delegate -> Microsoft.AspNetCore.Builder.RouteHandlerBuilder
<Extension()>
Public Function MapGet (endpoints As IEndpointRouteBuilder, pattern As String, handler As Delegate) As RouteHandlerBuilder

Parametri

endpoints
IEndpointRouteBuilder

Oggetto IEndpointRouteBuilder da aggiungere alla route.

pattern
String

Modello di route.

handler
Delegate

Delegato eseguito quando l'endpoint è corrispondente.

Restituisce

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

Si applica a

MapGet(IEndpointRouteBuilder, String, RequestDelegate)

Aggiunge un RouteEndpoint oggetto all'oggetto IEndpointRouteBuilder che corrisponde alle richieste HTTP GET per il modello specificato.

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

Parametri

endpoints
IEndpointRouteBuilder

Oggetto IEndpointRouteBuilder da aggiungere alla route.

pattern
String

Modello di route.

requestDelegate
RequestDelegate

Delegato eseguito quando l'endpoint è corrispondente.

Restituisce

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

Si applica a