RouteBuilder Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides support for specifying routes in an application.
public ref class RouteBuilder : Microsoft::AspNetCore::Routing::IRouteBuilder
public class RouteBuilder : Microsoft.AspNetCore.Routing.IRouteBuilder
type RouteBuilder = class
interface IRouteBuilder
Public Class RouteBuilder
Implements IRouteBuilder
- Inheritance
-
RouteBuilder
- Implements
Constructors
RouteBuilder(IApplicationBuilder, IRouter) |
Constructs a new RouteBuilder instance given an |
RouteBuilder(IApplicationBuilder) |
Constructs a new RouteBuilder instance given an |
Properties
ApplicationBuilder |
Gets the IApplicationBuilder. |
DefaultHandler |
Gets or sets the default IRouter that is used as a handler if an IRouter is added to the list of routes but does not specify its own. |
Routes |
Gets the routes configured in the builder. |
ServiceProvider |
Gets the sets the IServiceProvider used to resolve services for routes. |
Methods
Build() |
Builds an IRouter that routes the routes specified in the Routes property. |
Extension Methods
MapRoute(IRouteBuilder, String, String, Object, Object, Object) |
Adds a route to the IRouteBuilder with the specified name, template, default values, and data tokens. |
MapRoute(IRouteBuilder, String, String, Object, Object) |
Adds a route to the IRouteBuilder with the specified name, template, default values, and constraints. |
MapRoute(IRouteBuilder, String, String, Object) |
Adds a route to the IRouteBuilder with the specified name, template, and default values. |
MapRoute(IRouteBuilder, String, String) |
Adds a route to the IRouteBuilder with the specified name and template. |
MapAreaRoute(IRouteBuilder, String, String, String, Object, Object, Object) |
Adds a route to the IRouteBuilder with the given MVC area with the specified
|
MapAreaRoute(IRouteBuilder, String, String, String, Object, Object) |
Adds a route to the IRouteBuilder with the given MVC area with the specified
|
MapAreaRoute(IRouteBuilder, String, String, String, Object) |
Adds a route to the IRouteBuilder with the given MVC area with the specified
|
MapAreaRoute(IRouteBuilder, String, String, String) |
Adds a route to the IRouteBuilder with the given MVC area with the specified
|
MapSpaFallbackRoute(IRouteBuilder, String, Object, Object, Object) |
Configures a route that is automatically bypassed if the requested URL appears to be for a static file (e.g., if it has a filename extension). |
MapSpaFallbackRoute(IRouteBuilder, String, String, Object, Object, Object) |
Configures a route that is automatically bypassed if the requested URL appears to be for a static file (e.g., if it has a filename extension). |
MapWebApiRoute(IRouteBuilder, String, String, Object, Object, Object) | |
MapWebApiRoute(IRouteBuilder, String, String, Object, Object) | |
MapWebApiRoute(IRouteBuilder, String, String, Object) | |
MapWebApiRoute(IRouteBuilder, String, String) | |
MapDelete(IRouteBuilder, String, RequestDelegate) |
Adds a route to the IRouteBuilder that only matches HTTP DELETE requests for the given
|
MapDelete(IRouteBuilder, String, Action<IApplicationBuilder>) |
Adds a route to the IRouteBuilder that only matches HTTP DELETE requests for the given
|
MapDelete(IRouteBuilder, String, Func<HttpRequest,HttpResponse,RouteData,Task>) |
Adds a route to the IRouteBuilder that only matches HTTP DELETE requests for the given
|
MapGet(IRouteBuilder, String, RequestDelegate) |
Adds a route to the IRouteBuilder that only matches HTTP GET requests for the given
|
MapGet(IRouteBuilder, String, Action<IApplicationBuilder>) |
Adds a route to the IRouteBuilder that only matches HTTP GET requests for the given
|
MapGet(IRouteBuilder, String, Func<HttpRequest,HttpResponse,RouteData,Task>) |
Adds a route to the IRouteBuilder that only matches HTTP GET requests for the given
|
MapMiddlewareDelete(IRouteBuilder, String, Action<IApplicationBuilder>) |
Adds a route to the IRouteBuilder that only matches HTTP DELETE requests for the given
|
MapMiddlewareGet(IRouteBuilder, String, Action<IApplicationBuilder>) |
Adds a route to the IRouteBuilder that only matches HTTP GET requests for the given
|
MapMiddlewarePost(IRouteBuilder, String, Action<IApplicationBuilder>) |
Adds a route to the IRouteBuilder that only matches HTTP POST requests for the given
|
MapMiddlewarePut(IRouteBuilder, String, Action<IApplicationBuilder>) |
Adds a route to the IRouteBuilder that only matches HTTP PUT requests for the given
|
MapMiddlewareRoute(IRouteBuilder, String, Action<IApplicationBuilder>) |
Adds a route to the IRouteBuilder for the given |
MapMiddlewareVerb(IRouteBuilder, String, String, Action<IApplicationBuilder>) |
Adds a route to the IRouteBuilder that only matches HTTP requests for the given
|
MapPost(IRouteBuilder, String, RequestDelegate) |
Adds a route to the IRouteBuilder that only matches HTTP POST requests for the given
|
MapPost(IRouteBuilder, String, Action<IApplicationBuilder>) |
Adds a route to the IRouteBuilder that only matches HTTP POST requests for the given
|
MapPost(IRouteBuilder, String, Func<HttpRequest,HttpResponse,RouteData,Task>) |
Adds a route to the IRouteBuilder that only matches HTTP POST requests for the given
|
MapPut(IRouteBuilder, String, RequestDelegate) |
Adds a route to the IRouteBuilder that only matches HTTP PUT requests for the given
|
MapPut(IRouteBuilder, String, Action<IApplicationBuilder>) |
Adds a route to the IRouteBuilder that only matches HTTP PUT requests for the given
|
MapPut(IRouteBuilder, String, Func<HttpRequest,HttpResponse,RouteData,Task>) |
Adds a route to the IRouteBuilder that only matches HTTP PUT requests for the given
|
MapRoute(IRouteBuilder, String, RequestDelegate) |
Adds a route to the IRouteBuilder for the given |
MapRoute(IRouteBuilder, String, Action<IApplicationBuilder>) |
Adds a route to the IRouteBuilder for the given |
MapVerb(IRouteBuilder, String, String, RequestDelegate) |
Adds a route to the IRouteBuilder that only matches HTTP requests for the given
|
MapVerb(IRouteBuilder, String, String, Action<IApplicationBuilder>) |
Adds a route to the IRouteBuilder that only matches HTTP requests for the given
|
MapVerb(IRouteBuilder, String, String, Func<HttpRequest,HttpResponse,RouteData,Task>) |
Adds a route to the IRouteBuilder that only matches HTTP requests for the given
|