Поделиться через


RouteBuilder Конструкторы

Определение

Перегрузки

RouteBuilder(IApplicationBuilder)

Создает новый RouteBuilder экземпляр по заданному объекту applicationBuilder.

RouteBuilder(IApplicationBuilder, IRouter)

Создает новый RouteBuilder экземпляр с помощью applicationBuilder и defaultHandler.

RouteBuilder(IApplicationBuilder)

Исходный код:
RouteBuilder.cs
Исходный код:
RouteBuilder.cs
Исходный код:
RouteBuilder.cs

Создает новый RouteBuilder экземпляр по заданному объекту 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)

Параметры

applicationBuilder
IApplicationBuilder

Экземпляр IApplicationBuilder.

Применяется к

RouteBuilder(IApplicationBuilder, IRouter)

Исходный код:
RouteBuilder.cs
Исходный код:
RouteBuilder.cs
Исходный код:
RouteBuilder.cs

Создает новый RouteBuilder экземпляр с помощью applicationBuilder и 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)

Параметры

applicationBuilder
IApplicationBuilder

Экземпляр IApplicationBuilder.

defaultHandler
IRouter

Значение по умолчанию IRouter , используемое при добавлении нового маршрута без обработчика.

Применяется к