EndpointRouteBuilderExtensions.MapGet Yöntem

Tanım

Aşırı Yüklemeler

MapGet(IEndpointRouteBuilder, String, Delegate)

belirtilen desen için IEndpointRouteBuilder HTTP GET istekleriyle eşleşen öğesine bir RouteEndpoint ekler.

MapGet(IEndpointRouteBuilder, String, RequestDelegate)

belirtilen desen için IEndpointRouteBuilder HTTP GET istekleriyle eşleşen öğesine bir RouteEndpoint ekler.

MapGet(IEndpointRouteBuilder, String, Delegate)

belirtilen desen için IEndpointRouteBuilder HTTP GET istekleriyle eşleşen öğesine bir RouteEndpoint ekler.

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

Parametreler

endpoints
IEndpointRouteBuilder

IEndpointRouteBuilder yolu eklenecek.

pattern
String

Yol deseni.

handler
Delegate

Uç nokta eşleştirildiğinde temsilci yürütülür.

Döndürülenler

RouteHandlerBuilder Uç noktayı daha fazla özelleştirmek için kullanılabilecek bir.

Şunlara uygulanır

MapGet(IEndpointRouteBuilder, String, RequestDelegate)

belirtilen desen için IEndpointRouteBuilder HTTP GET istekleriyle eşleşen öğesine bir RouteEndpoint ekler.

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

Parametreler

endpoints
IEndpointRouteBuilder

IEndpointRouteBuilder yolu eklenecek.

pattern
String

Yol deseni.

requestDelegate
RequestDelegate

Uç nokta eşleştirildiğinde temsilci yürütülür.

Döndürülenler

IEndpointConventionBuilder Uç noktayı daha fazla özelleştirmek için kullanılabilecek bir.

Şunlara uygulanır