EndpointRouteBuilderExtensions.Map 方法

定义

重载

Map(IEndpointRouteBuilder, RoutePattern, RequestDelegate)

RouteEndpoint将 添加到IEndpointRouteBuilder与指定模式的 HTTP 请求匹配的 。

Map(IEndpointRouteBuilder, RoutePattern, Delegate)

RouteEndpoint将 添加到IEndpointRouteBuilder与指定模式的 HTTP 请求匹配的 。

Map(IEndpointRouteBuilder, String, RequestDelegate)

RouteEndpoint将 添加到IEndpointRouteBuilder与指定模式的 HTTP 请求匹配的 。

Map(IEndpointRouteBuilder, String, Delegate)

RouteEndpoint将 添加到IEndpointRouteBuilder与指定模式的 HTTP 请求匹配的 。

Map(IEndpointRouteBuilder, RoutePattern, RequestDelegate)

RouteEndpoint将 添加到IEndpointRouteBuilder与指定模式的 HTTP 请求匹配的 。

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

参数

endpoints
IEndpointRouteBuilder

IEndpointRouteBuilder 向其添加路由的 。

pattern
RoutePattern

路由模式。

requestDelegate
RequestDelegate

终结点匹配时执行的委托。

返回

可用于 IEndpointConventionBuilder 进一步自定义终结点的 。

适用于

Map(IEndpointRouteBuilder, RoutePattern, Delegate)

RouteEndpoint将 添加到IEndpointRouteBuilder与指定模式的 HTTP 请求匹配的 。

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

参数

endpoints
IEndpointRouteBuilder

IEndpointRouteBuilder 向其添加路由的 。

pattern
RoutePattern

路由模式。

handler
Delegate

终结点匹配时执行的委托。

返回

可用于 RouteHandlerBuilder 进一步自定义终结点的 。

适用于

Map(IEndpointRouteBuilder, String, RequestDelegate)

RouteEndpoint将 添加到IEndpointRouteBuilder与指定模式的 HTTP 请求匹配的 。

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

参数

endpoints
IEndpointRouteBuilder

IEndpointRouteBuilder 向其添加路由的 。

pattern
String

路由模式。

requestDelegate
RequestDelegate

终结点匹配时执行的委托。

返回

可用于 IEndpointConventionBuilder 进一步自定义终结点的 。

适用于

Map(IEndpointRouteBuilder, String, Delegate)

RouteEndpoint将 添加到IEndpointRouteBuilder与指定模式的 HTTP 请求匹配的 。

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

参数

endpoints
IEndpointRouteBuilder

IEndpointRouteBuilder 向其添加路由的 。

pattern
String

路由模式。

handler
Delegate

终结点匹配时执行的委托。

返回

可用于 RouteHandlerBuilder 进一步自定义终结点的 。

适用于