共用方式為


ViewLocationExpanderContext 建構函式

定義

多載

ViewLocationExpanderContext(ActionContext, String, String, String, Boolean)

初始化 ViewLocationExpanderContext 的新執行個體。

public:
 ViewLocationExpanderContext(Microsoft::AspNetCore::Mvc::ActionContext ^ actionContext, System::String ^ viewName, System::String ^ controllerName, System::String ^ areaName, bool isMainPage);
public ViewLocationExpanderContext(Microsoft.AspNetCore.Mvc.ActionContext actionContext, string viewName, string controllerName, string areaName, bool isMainPage);
new Microsoft.AspNetCore.Mvc.Razor.ViewLocationExpanderContext : Microsoft.AspNetCore.Mvc.ActionContext * string * string * string * bool -> Microsoft.AspNetCore.Mvc.Razor.ViewLocationExpanderContext
Public Sub New (actionContext As ActionContext, viewName As String, controllerName As String, areaName As String, isMainPage As Boolean)

參數

actionContext
ActionContext

ActionContext目前執行動作的 。

viewName
String

檢視名稱。

controllerName
String

控制器名稱。

areaName
String

區功能變數名稱稱。

isMainPage
Boolean

判斷找到的頁面是否為動作的主頁面。

適用於

ViewLocationExpanderContext(ActionContext, String, String, String, String, Boolean)

來源:
ViewLocationExpanderContext.cs
來源:
ViewLocationExpanderContext.cs
來源:
ViewLocationExpanderContext.cs

初始化 ViewLocationExpanderContext 的新執行個體。

public:
 ViewLocationExpanderContext(Microsoft::AspNetCore::Mvc::ActionContext ^ actionContext, System::String ^ viewName, System::String ^ controllerName, System::String ^ areaName, System::String ^ pageName, bool isMainPage);
public ViewLocationExpanderContext(Microsoft.AspNetCore.Mvc.ActionContext actionContext, string viewName, string? controllerName, string? areaName, string? pageName, bool isMainPage);
public ViewLocationExpanderContext(Microsoft.AspNetCore.Mvc.ActionContext actionContext, string viewName, string controllerName, string areaName, string pageName, bool isMainPage);
new Microsoft.AspNetCore.Mvc.Razor.ViewLocationExpanderContext : Microsoft.AspNetCore.Mvc.ActionContext * string * string * string * string * bool -> Microsoft.AspNetCore.Mvc.Razor.ViewLocationExpanderContext
Public Sub New (actionContext As ActionContext, viewName As String, controllerName As String, areaName As String, pageName As String, isMainPage As Boolean)

參數

actionContext
ActionContext

ActionContext目前執行動作的 。

viewName
String

檢視名稱。

controllerName
String

控制器名稱。

areaName
String

區功能變數名稱稱。

pageName
String

頁面名稱。

isMainPage
Boolean

判斷找到的頁面是否為動作的主頁面。

適用於