共用方式為


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 指定的區域產生關聯。

適用於