Compartir a través de


EndpointRouteBuilderExtensions.Map Método

Definición

Sobrecargas

Map(IEndpointRouteBuilder, RoutePattern, RequestDelegate)

Agrega un RouteEndpoint al IEndpointRouteBuilder objeto que coincide con las solicitudes HTTP para el patrón especificado.

Map(IEndpointRouteBuilder, RoutePattern, Delegate)

Agrega un RouteEndpoint al IEndpointRouteBuilder objeto que coincide con las solicitudes HTTP para el patrón especificado.

Map(IEndpointRouteBuilder, String, RequestDelegate)

Agrega un RouteEndpoint al IEndpointRouteBuilder objeto que coincide con las solicitudes HTTP para el patrón especificado.

Map(IEndpointRouteBuilder, String, Delegate)

Agrega un RouteEndpoint al IEndpointRouteBuilder objeto que coincide con las solicitudes HTTP para el patrón especificado.

Map(IEndpointRouteBuilder, RoutePattern, RequestDelegate)

Source:
EndpointRouteBuilderExtensions.cs

Agrega un RouteEndpoint al IEndpointRouteBuilder objeto que coincide con las solicitudes HTTP para el patrón especificado.

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

Parámetros

endpoints
IEndpointRouteBuilder

IEndpointRouteBuilder al que se va a agregar la ruta.

pattern
RoutePattern

Patrón de ruta.

requestDelegate
RequestDelegate

Delegado que se ejecuta cuando se coincide con el punto de conexión.

Devoluciones

IEndpointConventionBuilder que se puede usar para personalizar aún más el punto de conexión.

Se aplica a

Map(IEndpointRouteBuilder, RoutePattern, Delegate)

Source:
EndpointRouteBuilderExtensions.cs

Agrega un RouteEndpoint al IEndpointRouteBuilder objeto que coincide con las solicitudes HTTP para el patrón especificado.

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

Parámetros

endpoints
IEndpointRouteBuilder

IEndpointRouteBuilder al que se va a agregar la ruta.

pattern
RoutePattern

Patrón de ruta.

handler
Delegate

Delegado que se ejecuta cuando se coincide con el punto de conexión.

Devoluciones

RouteHandlerBuilder que se puede usar para personalizar aún más el punto de conexión.

Se aplica a

Map(IEndpointRouteBuilder, String, RequestDelegate)

Source:
EndpointRouteBuilderExtensions.cs

Agrega un RouteEndpoint al IEndpointRouteBuilder objeto que coincide con las solicitudes HTTP para el patrón especificado.

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

Parámetros

endpoints
IEndpointRouteBuilder

IEndpointRouteBuilder al que se va a agregar la ruta.

pattern
String

Patrón de ruta.

requestDelegate
RequestDelegate

Delegado que se ejecuta cuando se coincide con el punto de conexión.

Devoluciones

IEndpointConventionBuilder que se puede usar para personalizar aún más el punto de conexión.

Se aplica a

Map(IEndpointRouteBuilder, String, Delegate)

Source:
EndpointRouteBuilderExtensions.cs

Agrega un RouteEndpoint al IEndpointRouteBuilder objeto que coincide con las solicitudes HTTP para el patrón especificado.

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

Parámetros

endpoints
IEndpointRouteBuilder

IEndpointRouteBuilder al que se va a agregar la ruta.

pattern
String

Patrón de ruta.

handler
Delegate

Delegado que se ejecuta cuando se coincide con el punto de conexión.

Devoluciones

RouteHandlerBuilder que se puede usar para personalizar aún más el punto de conexión.

Se aplica a