EndpointRouteBuilderExtensions.Map Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Map(IEndpointRouteBuilder, RoutePattern, RequestDelegate) |
Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP requests for the specified pattern. |
Map(IEndpointRouteBuilder, RoutePattern, Delegate) |
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, String, Delegate) |
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
A IEndpointConventionBuilder that can be used to further customize the endpoint.
Applies to
Map(IEndpointRouteBuilder, RoutePattern, Delegate)
Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP requests for the specified pattern.
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
Parameters
- endpoints
- IEndpointRouteBuilder
The IEndpointRouteBuilder to add the route to.
- pattern
- RoutePattern
The route pattern.
- handler
- Delegate
The delegate executed when the endpoint is matched.
Returns
A RouteHandlerBuilder 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
A IEndpointConventionBuilder that can be used to further customize the endpoint.
Applies to
Map(IEndpointRouteBuilder, String, Delegate)
Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP requests for the specified pattern.
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
Parameters
- endpoints
- IEndpointRouteBuilder
The IEndpointRouteBuilder to add the route to.
- pattern
- String
The route pattern.
- handler
- Delegate
The delegate executed when the endpoint is matched.
Returns
A RouteHandlerBuilder that can be used to further customize the endpoint.