共用方式為


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

包含要傳遞給此區域之使用者定義資訊的物件。

適用於