EndpointRouteBuilderExtensions.Map Method

Definition

Overloads

Map(IEndpointRouteBuilder, RoutePattern, RequestDelegate)

Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP requests for the specified pattern.

Map(IEndpointRouteBuilder, String, RequestDelegate)

Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP requests for the specified pattern.

Map(IEndpointRouteBuilder, RoutePattern, RequestDelegate)

Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP requests for the specified pattern.

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

Parameters

endpoints
IEndpointRouteBuilder

The IEndpointRouteBuilder to add the route to.

pattern
RoutePattern

The route pattern.

requestDelegate
RequestDelegate

The delegate executed when the endpoint is matched.

Returns

IEndpointConventionBuilder

A IEndpointConventionBuilder that can be used to further customize the endpoint.

Applies to

Map(IEndpointRouteBuilder, String, RequestDelegate)

Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP requests for the specified pattern.

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

Parameters

endpoints
IEndpointRouteBuilder

The IEndpointRouteBuilder to add the route to.

pattern
String

The route pattern.

requestDelegate
RequestDelegate

The delegate executed when the endpoint is matched.

Returns

IEndpointConventionBuilder

A IEndpointConventionBuilder that can be used to further customize the endpoint.

Applies to