Partager via


AreaRegistrationContext Constructor (String, RouteCollection, Object)

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

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

Syntax

'Declaration
Public Sub New ( _
    areaName As String, _
    routes As RouteCollection, _
    state As Object _
)
public AreaRegistrationContext(
    string areaName,
    RouteCollection routes,
    Object state
)
public:
AreaRegistrationContext(
    String^ areaName, 
    RouteCollection^ routes, 
    Object^ state
)

Parameters

  • state
    Type: System.Object
    An object that contains user-defined information to pass to the area.

See Also

Reference

AreaRegistrationContext Class

AreaRegistrationContext Overload

System.Web.Mvc Namespace