AreaRegistrationContext Constructors
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
AreaRegistrationContext(String, RouteCollection) |
Initializes a new instance of the AreaRegistrationContext class using the specified area name and routes collection. |
AreaRegistrationContext(String, RouteCollection, Object) |
Initializes a new instance of the AreaRegistrationContext class using the specified area name, routes collection, and user-defined data. |
AreaRegistrationContext(String, RouteCollection)
Initializes a new instance of the AreaRegistrationContext class using the specified area name and routes collection.
public AreaRegistrationContext (string areaName, System.Web.Routing.RouteCollection routes);
new System.Web.Mvc.AreaRegistrationContext : string * System.Web.Routing.RouteCollection -> System.Web.Mvc.AreaRegistrationContext
Public Sub New (areaName As String, routes As RouteCollection)
Parameters
- areaName
- String
The name of the area to register.
- routes
- RouteCollection
The collection of routes for the application.
Applies to
AreaRegistrationContext(String, RouteCollection, Object)
Initializes a new instance of the AreaRegistrationContext class using the specified area name, routes collection, and user-defined data.
public AreaRegistrationContext (string areaName, System.Web.Routing.RouteCollection routes, object state);
new System.Web.Mvc.AreaRegistrationContext : string * System.Web.Routing.RouteCollection * obj -> System.Web.Mvc.AreaRegistrationContext
Public Sub New (areaName As String, routes As RouteCollection, state As Object)
Parameters
- areaName
- String
The name of the area to register.
- routes
- RouteCollection
The collection of routes for the application.
- state
- Object
An object that contains user-defined information to pass to the area.