MvcAreaRouteBuilderExtensions.MapAreaRoute MvcAreaRouteBuilderExtensions.MapAreaRoute MvcAreaRouteBuilderExtensions.MapAreaRoute Method

Definition

Overloads

MapAreaRoute(IRouteBuilder, String, String, String) MapAreaRoute(IRouteBuilder, String, String, String) MapAreaRoute(IRouteBuilder, String, String, String)

Adds a route to the IRouteBuilder with the given MVC area with the specified name, areaName and template.

MapAreaRoute(IRouteBuilder, String, String, String, Object) MapAreaRoute(IRouteBuilder, String, String, String, Object) MapAreaRoute(IRouteBuilder, String, String, String, Object)

Adds a route to the IRouteBuilder with the given MVC area with the specified name, areaName, template, and defaults.

MapAreaRoute(IRouteBuilder, String, String, String, Object, Object) MapAreaRoute(IRouteBuilder, String, String, String, Object, Object) MapAreaRoute(IRouteBuilder, String, String, String, Object, Object)

Adds a route to the IRouteBuilder with the given MVC area with the specified name, areaName, template, defaults, and constraints.

MapAreaRoute(IRouteBuilder, String, String, String, Object, Object, Object) MapAreaRoute(IRouteBuilder, String, String, String, Object, Object, Object) MapAreaRoute(IRouteBuilder, String, String, String, Object, Object, Object)

Adds a route to the IRouteBuilder with the given MVC area with the specified name, areaName, template, defaults, constraints, and dataTokens.

MapAreaRoute(IRouteBuilder, String, String, String) MapAreaRoute(IRouteBuilder, String, String, String) MapAreaRoute(IRouteBuilder, String, String, String)

Adds a route to the IRouteBuilder with the given MVC area with the specified name, areaName and template.

public static Microsoft.AspNetCore.Routing.IRouteBuilder MapAreaRoute (this Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, string name, string areaName, string template);
static member MapAreaRoute : Microsoft.AspNetCore.Routing.IRouteBuilder * string * string * string -> Microsoft.AspNetCore.Routing.IRouteBuilder
<Extension()>
Public Function MapAreaRoute (routeBuilder As IRouteBuilder, name As String, areaName As String, template As String) As IRouteBuilder

Parameters

routeBuilder
IRouteBuilder IRouteBuilder IRouteBuilder

The IRouteBuilder to add the route to.

name
String String String

The name of the route.

areaName
String String String

The MVC area name.

template
String String String

The URL pattern of the route.

Returns

A reference to this instance after the operation has completed.

MapAreaRoute(IRouteBuilder, String, String, String, Object) MapAreaRoute(IRouteBuilder, String, String, String, Object) MapAreaRoute(IRouteBuilder, String, String, String, Object)

Adds a route to the IRouteBuilder with the given MVC area with the specified name, areaName, template, and defaults.

public static Microsoft.AspNetCore.Routing.IRouteBuilder MapAreaRoute (this Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, string name, string areaName, string template, object defaults);
static member MapAreaRoute : Microsoft.AspNetCore.Routing.IRouteBuilder * string * string * string * obj -> Microsoft.AspNetCore.Routing.IRouteBuilder
<Extension()>
Public Function MapAreaRoute (routeBuilder As IRouteBuilder, name As String, areaName As String, template As String, defaults As Object) As IRouteBuilder

Parameters

routeBuilder
IRouteBuilder IRouteBuilder IRouteBuilder

The IRouteBuilder to add the route to.

name
String String String

The name of the route.

areaName
String String String

The MVC area name.

template
String String String

The URL pattern of the route.

defaults
Object Object Object

An object that contains default values for route parameters. The object's properties represent the names and values of the default values.

Returns

A reference to this instance after the operation has completed.

MapAreaRoute(IRouteBuilder, String, String, String, Object, Object) MapAreaRoute(IRouteBuilder, String, String, String, Object, Object) MapAreaRoute(IRouteBuilder, String, String, String, Object, Object)

Adds a route to the IRouteBuilder with the given MVC area with the specified name, areaName, template, defaults, and constraints.

public static Microsoft.AspNetCore.Routing.IRouteBuilder MapAreaRoute (this Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, string name, string areaName, string template, object defaults, object constraints);
static member MapAreaRoute : Microsoft.AspNetCore.Routing.IRouteBuilder * string * string * string * obj * obj -> Microsoft.AspNetCore.Routing.IRouteBuilder
<Extension()>
Public Function MapAreaRoute (routeBuilder As IRouteBuilder, name As String, areaName As String, template As String, defaults As Object, constraints As Object) As IRouteBuilder

Parameters

routeBuilder
IRouteBuilder IRouteBuilder IRouteBuilder

The IRouteBuilder to add the route to.

name
String String String

The name of the route.

areaName
String String String

The MVC area name.

template
String String String

The URL pattern of the route.

defaults
Object Object Object

An object that contains default values for route parameters. The object's properties represent the names and values of the default values.

constraints
Object Object Object

An object that contains constraints for the route. The object's properties represent the names and values of the constraints.

Returns

A reference to this instance after the operation has completed.

MapAreaRoute(IRouteBuilder, String, String, String, Object, Object, Object) MapAreaRoute(IRouteBuilder, String, String, String, Object, Object, Object) MapAreaRoute(IRouteBuilder, String, String, String, Object, Object, Object)

Adds a route to the IRouteBuilder with the given MVC area with the specified name, areaName, template, defaults, constraints, and dataTokens.

public static Microsoft.AspNetCore.Routing.IRouteBuilder MapAreaRoute (this Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, string name, string areaName, string template, object defaults, object constraints, object dataTokens);
static member MapAreaRoute : Microsoft.AspNetCore.Routing.IRouteBuilder * string * string * string * obj * obj * obj -> Microsoft.AspNetCore.Routing.IRouteBuilder
<Extension()>
Public Function MapAreaRoute (routeBuilder As IRouteBuilder, name As String, areaName As String, template As String, defaults As Object, constraints As Object, dataTokens As Object) As IRouteBuilder

Parameters

routeBuilder
IRouteBuilder IRouteBuilder IRouteBuilder

The IRouteBuilder to add the route to.

name
String String String

The name of the route.

areaName
String String String

The MVC area name.

template
String String String

The URL pattern of the route.

defaults
Object Object Object

An object that contains default values for route parameters. The object's properties represent the names and values of the default values.

constraints
Object Object Object

An object that contains constraints for the route. The object's properties represent the names and values of the constraints.

dataTokens
Object Object Object

An object that contains data tokens for the route. The object's properties represent the names and values of the data tokens.

Returns

A reference to this instance after the operation has completed.

Applies to