EndpointRouteBuilderExtensions.MapMethods 方法

定義

多載

MapMethods(IEndpointRouteBuilder, String, IEnumerable<String>, RequestDelegate)

RouteEndpoint將 加入符合 IEndpointRouteBuilder 指定 HTTP 方法和模式之 HTTP 要求的 。

MapMethods(IEndpointRouteBuilder, String, IEnumerable<String>, Delegate)

RouteEndpoint將 加入符合 IEndpointRouteBuilder 指定 HTTP 方法和模式之 HTTP 要求的 。

MapMethods(IEndpointRouteBuilder, String, IEnumerable<String>, RequestDelegate)

RouteEndpoint將 加入符合 IEndpointRouteBuilder 指定 HTTP 方法和模式之 HTTP 要求的 。

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

參數

endpoints
IEndpointRouteBuilder

IEndpointRouteBuilder 加入路由的 。

pattern
String

路由模式。

httpMethods
IEnumerable<String>

端點將相符的 HTTP 方法。

requestDelegate
RequestDelegate

比對端點時所執行的委派。

傳回

IEndpointConventionBuilder 可用來進一步自訂端點。

適用於

MapMethods(IEndpointRouteBuilder, String, IEnumerable<String>, Delegate)

RouteEndpoint將 加入符合 IEndpointRouteBuilder 指定 HTTP 方法和模式之 HTTP 要求的 。

public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder MapMethods (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, System.Collections.Generic.IEnumerable<string> httpMethods, Delegate handler);
static member MapMethods : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * string * seq<string> * Delegate -> Microsoft.AspNetCore.Builder.RouteHandlerBuilder
<Extension()>
Public Function MapMethods (endpoints As IEndpointRouteBuilder, pattern As String, httpMethods As IEnumerable(Of String), handler As Delegate) As RouteHandlerBuilder

參數

endpoints
IEndpointRouteBuilder

IEndpointRouteBuilder 加入路由的 。

pattern
String

路由模式。

httpMethods
IEnumerable<String>

端點將相符的 HTTP 方法。

handler
Delegate

比對端點時所執行的委派。

傳回

RouteHandlerBuilder 可用來進一步自訂端點。

適用於