Dela via


RouteBuilder Constructors

Definition

Overloads

RouteBuilder(IApplicationBuilder)

Constructs a new RouteBuilder instance given an applicationBuilder.

RouteBuilder(IApplicationBuilder, IRouter)

Constructs a new RouteBuilder instance given an applicationBuilder and defaultHandler.

RouteBuilder(IApplicationBuilder)

Source:
RouteBuilder.cs
Source:
RouteBuilder.cs
Source:
RouteBuilder.cs

Constructs a new RouteBuilder instance given an 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)

Parameters

applicationBuilder
IApplicationBuilder

An IApplicationBuilder instance.

Applies to

RouteBuilder(IApplicationBuilder, IRouter)

Source:
RouteBuilder.cs
Source:
RouteBuilder.cs
Source:
RouteBuilder.cs

Constructs a new RouteBuilder instance given an applicationBuilder and 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);
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)

Parameters

applicationBuilder
IApplicationBuilder

An IApplicationBuilder instance.

defaultHandler
IRouter

The default IRouter used if a new route is added without a handler.

Applies to