Sdílet prostřednictvím


RouteBuilder Konstruktory

Definice

Přetížení

RouteBuilder(IApplicationBuilder)

Vytvoří novou RouteBuilder instanci danou objektem applicationBuilder.

RouteBuilder(IApplicationBuilder, IRouter)

Vytvoří novou RouteBuilder instanci zadanou a applicationBuilderdefaultHandler.

RouteBuilder(IApplicationBuilder)

Zdroj:
RouteBuilder.cs
Zdroj:
RouteBuilder.cs
Zdroj:
RouteBuilder.cs

Vytvoří novou RouteBuilder instanci danou objektem applicationBuilder.

public:
 RouteBuilder(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ applicationBuilder);
public RouteBuilder (Microsoft.AspNetCore.Builder.IApplicationBuilder applicationBuilder);
new Microsoft.AspNetCore.Routing.RouteBuilder : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Routing.RouteBuilder
Public Sub New (applicationBuilder As IApplicationBuilder)

Parametry

applicationBuilder
IApplicationBuilder

Instance IApplicationBuilder .

Platí pro

RouteBuilder(IApplicationBuilder, IRouter)

Zdroj:
RouteBuilder.cs
Zdroj:
RouteBuilder.cs
Zdroj:
RouteBuilder.cs

Vytvoří novou RouteBuilder instanci zadanou a applicationBuilderdefaultHandler.

public:
 RouteBuilder(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ applicationBuilder, Microsoft::AspNetCore::Routing::IRouter ^ defaultHandler);
public RouteBuilder (Microsoft.AspNetCore.Builder.IApplicationBuilder applicationBuilder, Microsoft.AspNetCore.Routing.IRouter defaultHandler);
public RouteBuilder (Microsoft.AspNetCore.Builder.IApplicationBuilder applicationBuilder, Microsoft.AspNetCore.Routing.IRouter? defaultHandler);
new Microsoft.AspNetCore.Routing.RouteBuilder : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Routing.IRouter -> Microsoft.AspNetCore.Routing.RouteBuilder
Public Sub New (applicationBuilder As IApplicationBuilder, defaultHandler As IRouter)

Parametry

applicationBuilder
IApplicationBuilder

Instance IApplicationBuilder .

defaultHandler
IRouter

Výchozí hodnota IRouter se použije, pokud je přidána nová trasa bez obslužné rutiny.

Platí pro