AreaRegistrationContext Constructor

 

Initializes a new instance of the AreaRegistrationContext class.

Namespace:   System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

NameDescription
System_CAPS_pubmethodAreaRegistrationContext(String, RouteCollection)

Initializes a new instance of the AreaRegistrationContext class using the specified area name and routes collection.

System_CAPS_pubmethodAreaRegistrationContext(String, RouteCollection, Object)

Initializes a new instance of the AreaRegistrationContext class using the specified area name, routes collection, and user-defined data.

Return to top

AreaRegistrationContext Constructor (String, RouteCollection)

Initializes a new instance of the AreaRegistrationContext class using the specified area name and routes collection.

public AreaRegistrationContext(
	string areaName,
	RouteCollection routes
)

Parameters

areaName
Type: System.String

The name of the area to register.

routes
Type: System.Web.Routing.RouteCollection

The collection of routes for the application.

Return to top

AreaRegistrationContext Constructor (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,
	RouteCollection routes,
	object state
)

Parameters

areaName
Type: System.String

The name of the area to register.

routes
Type: System.Web.Routing.RouteCollection

The collection of routes for the application.

state
Type: System.Object

An object that contains user-defined information to pass to the area.

Return to top
Show: