RequestDelegateRouteBuilderExtensions.MapRoute Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
MapRoute(IRouteBuilder, String, RequestDelegate) |
Přidá trasu IRouteBuilder do pro danou |
MapRoute(IRouteBuilder, String, Action<IApplicationBuilder>) |
Přidá trasu IRouteBuilder do pro danou |
MapRoute(IRouteBuilder, String, RequestDelegate)
Přidá trasu IRouteBuilder do pro danou template
hodnotu 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 template
hodnotu 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.