Share via


AreaRegistrationContext 类

定义

对在 ASP.NET MVC 应用程序内注册某个区域时所需的信息进行封装。

public class AreaRegistrationContext
type AreaRegistrationContext = class
Public Class AreaRegistrationContext
继承
AreaRegistrationContext

构造函数

AreaRegistrationContext(String, RouteCollection)

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

AreaRegistrationContext(String, RouteCollection, Object)

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

属性

AreaName

获取要注册的区域的名称。

Namespaces

获取应用程序的命名空间。

Routes

获取应用程序的已定义路由的集合。

State

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

方法

MapRoute(String, String)

映射指定的 URL 路由,并将其与 属性指定的 AreaName 区域相关联。

MapRoute(String, String, Object)

映射指定的 URL 路由,并使用指定的路由默认值将其与 属性指定的 AreaName 区域相关联。

MapRoute(String, String, Object, Object)

映射指定的 URL 路由,并使用指定的路由默认值和约束将其与 属性指定的 AreaName 区域相关联。

MapRoute(String, String, Object, Object, String[])

映射指定的 URL 路由,并使用指定的路由默认值、约束和命名空间将其与 属性指定的 AreaName 区域相关联。

MapRoute(String, String, Object, String[])

映射指定的 URL 路由,并使用指定的路由默认值和命名空间将其与 属性指定的 AreaName 区域相关联。

MapRoute(String, String, String[])

映射指定的 URL 路由,并使用指定的命名空间将其与 属性指定的 AreaName 区域相关联。

适用于