EndpointRouteBuilderExtensions.MapGet メソッド

定義

オーバーロード

MapGet(IEndpointRouteBuilder, String, Delegate)

RouteEndpoint指定したパターンの IEndpointRouteBuilder HTTP GET 要求に一致する を に追加します。

MapGet(IEndpointRouteBuilder, String, RequestDelegate)

RouteEndpoint指定したパターンの IEndpointRouteBuilder HTTP GET 要求に一致する を に追加します。

MapGet(IEndpointRouteBuilder, String, Delegate)

RouteEndpoint指定したパターンの IEndpointRouteBuilder HTTP GET 要求に一致する を に追加します。

public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder MapGet (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, Delegate handler);
static member MapGet : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * string * Delegate -> Microsoft.AspNetCore.Builder.RouteHandlerBuilder
<Extension()>
Public Function MapGet (endpoints As IEndpointRouteBuilder, pattern As String, handler As Delegate) As RouteHandlerBuilder

パラメーター

endpoints
IEndpointRouteBuilder

IEndpointRouteBuilderルートを追加する 。

pattern
String

ルート パターン。

handler
Delegate

エンドポイントが一致したときに実行されるデリゲート。

戻り値

RouteHandlerBuilderエンドポイントをさらにカスタマイズするために使用できる 。

適用対象

MapGet(IEndpointRouteBuilder, String, RequestDelegate)

RouteEndpoint指定したパターンの IEndpointRouteBuilder HTTP GET 要求に一致する を に追加します。

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

パラメーター

endpoints
IEndpointRouteBuilder

IEndpointRouteBuilderルートを追加する 。

pattern
String

ルート パターン。

requestDelegate
RequestDelegate

エンドポイントが一致したときに実行されるデリゲート。

戻り値

IEndpointConventionBuilderエンドポイントをさらにカスタマイズするために使用できる 。

適用対象