AreaRegistrationContext 构造函数

定义

重载

AreaRegistrationContext(String, RouteCollection)

使用指定的区域名称和路由集合初始化 类的新实例 AreaRegistrationContext

AreaRegistrationContext(String, RouteCollection, Object)

使用指定的区域名称、路由集合和用户定义的数据初始化 类的新实例 AreaRegistrationContext

AreaRegistrationContext(String, RouteCollection)

使用指定的区域名称和路由集合初始化 类的新实例 AreaRegistrationContext

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)

参数

areaName
String

要注册的区域的名称。

routes
RouteCollection

应用程序的路由的集合。

适用于

AreaRegistrationContext(String, RouteCollection, Object)

使用指定的区域名称、路由集合和用户定义的数据初始化 类的新实例 AreaRegistrationContext

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)

参数

areaName
String

要注册的区域的名称。

routes
RouteCollection

应用程序的路由的集合。

state
Object

一个包含要传递到区域中的用户定义信息的对象。

适用于