Sdílet prostřednictvím


RequestDelegateRouteBuilderExtensions.MapRoute Metoda

Definice

Přetížení

MapRoute(IRouteBuilder, String, RequestDelegate)

Přidá trasu IRouteBuilder do pro danou templatehodnotu a handler.

MapRoute(IRouteBuilder, String, Action<IApplicationBuilder>)

Přidá trasu IRouteBuilder do pro danou templatehodnotu a action.

MapRoute(IRouteBuilder, String, RequestDelegate)

Zdroj:
RequestDelegateRouteBuilderExtensions.cs
Zdroj:
RequestDelegateRouteBuilderExtensions.cs
Zdroj:
RequestDelegateRouteBuilderExtensions.cs

Přidá trasu IRouteBuilder do pro danou templatehodnotu a handler.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Routing::IRouteBuilder ^ MapRoute(Microsoft::AspNetCore::Routing::IRouteBuilder ^ builder, System::String ^ template, Microsoft::AspNetCore::Http::RequestDelegate ^ handler);
public static Microsoft.AspNetCore.Routing.IRouteBuilder MapRoute (this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string template, Microsoft.AspNetCore.Http.RequestDelegate handler);
static member MapRoute : Microsoft.AspNetCore.Routing.IRouteBuilder * string * Microsoft.AspNetCore.Http.RequestDelegate -> Microsoft.AspNetCore.Routing.IRouteBuilder
<Extension()>
Public Function MapRoute (builder As IRouteBuilder, template As String, handler As RequestDelegate) As IRouteBuilder

Parametry

builder
IRouteBuilder

Hodnota IRouteBuilder

template
String

Šablona trasy.

handler
RequestDelegate

Obslužná rutina RequestDelegate trasy.

Návraty

Odkaz na builder po dokončení této operace.

Platí pro

MapRoute(IRouteBuilder, String, Action<IApplicationBuilder>)

Přidá trasu IRouteBuilder do pro danou templatehodnotu a action.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Routing::IRouteBuilder ^ MapRoute(Microsoft::AspNetCore::Routing::IRouteBuilder ^ builder, System::String ^ template, Action<Microsoft::AspNetCore::Builder::IApplicationBuilder ^> ^ action);
public static Microsoft.AspNetCore.Routing.IRouteBuilder MapRoute (this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string template, Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> action);
static member MapRoute : Microsoft.AspNetCore.Routing.IRouteBuilder * string * Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> -> Microsoft.AspNetCore.Routing.IRouteBuilder
<Extension()>
Public Function MapRoute (builder As IRouteBuilder, template As String, action As Action(Of IApplicationBuilder)) As IRouteBuilder

Parametry

builder
IRouteBuilder

Hodnota IRouteBuilder

template
String

Šablona trasy.

action
Action<IApplicationBuilder>

Akce, která se má použít pro IApplicationBuilder.

Návraty

Odkaz na builder po dokončení této operace.

Platí pro