AreaRegistrationContext 类

定义

封装在 ASP.NET MVC 应用程序中注册区域所需的信息。

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

构造函数

AreaRegistrationContext(String, RouteCollection, Object)

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

AreaRegistrationContext(String, RouteCollection)

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

属性

AreaName

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

Namespaces

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

Routes

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

State

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

方法

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

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

MapRoute(String, String, Object, Object)

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

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

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

MapRoute(String, String, Object)

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

MapRoute(String, String, String[])

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

MapRoute(String, String)

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

适用于