EndpointRouteBuilderExtensions.Map 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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 可用來進一步自訂端點。