MvcAreaRouteBuilderExtensions.MapAreaRoute Method
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.
Overloads
MapAreaRoute(IRouteBuilder, String, String, String) |
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, Object, Object) |
Adds a route to the IRouteBuilder with the given MVC area with the specified
|
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)
Adds a route to the IRouteBuilder with the given MVC area with the specified
name
, areaName
and template
.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Routing::IRouteBuilder ^ MapAreaRoute(Microsoft::AspNetCore::Routing::IRouteBuilder ^ routeBuilder, System::String ^ name, System::String ^ areaName, System::String ^ template);
public static Microsoft.AspNetCore.Routing.IRouteBuilder MapAreaRoute (this Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, string name, string areaName, string 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
The IRouteBuilder to add the route to.
- name
- String
The name of the route.
- areaName
- String
The MVC area name.
- template
- String
The URL pattern of the route.
Returns
A reference to this instance after the operation has completed.
Applies to
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:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Routing::IRouteBuilder ^ MapAreaRoute(Microsoft::AspNetCore::Routing::IRouteBuilder ^ routeBuilder, System::String ^ name, System::String ^ areaName, System::String ^ template, System::Object ^ defaults);
public static Microsoft.AspNetCore.Routing.IRouteBuilder MapAreaRoute (this Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, string name, string areaName, string template, object 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
The IRouteBuilder to add the route to.
- name
- String
The name of the route.
- areaName
- String
The MVC area name.
- template
- String
The URL pattern of the route.
- defaults
- 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.
Applies to
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:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Routing::IRouteBuilder ^ MapAreaRoute(Microsoft::AspNetCore::Routing::IRouteBuilder ^ routeBuilder, System::String ^ name, System::String ^ areaName, System::String ^ template, System::Object ^ defaults, System::Object ^ constraints);
public static Microsoft.AspNetCore.Routing.IRouteBuilder MapAreaRoute (this Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, string name, string areaName, string template, object defaults, object 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
The IRouteBuilder to add the route to.
- name
- String
The name of the route.
- areaName
- String
The MVC area name.
- template
- String
The URL pattern of the route.
- defaults
- 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
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.
Applies to
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:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Routing::IRouteBuilder ^ MapAreaRoute(Microsoft::AspNetCore::Routing::IRouteBuilder ^ routeBuilder, System::String ^ name, System::String ^ areaName, System::String ^ template, System::Object ^ defaults, System::Object ^ constraints, System::Object ^ 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);
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
The IRouteBuilder to add the route to.
- name
- String
The name of the route.
- areaName
- String
The MVC area name.
- template
- String
The URL pattern of the route.
- defaults
- 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
An object that contains constraints for the route. The object's properties represent the names and values of the constraints.
- dataTokens
- 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.