ViewLocationExpanderContext 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
确定找到的页面是否是操作main页。
适用于
ViewLocationExpanderContext(ActionContext, String, String, String, String, Boolean)
初始化 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
确定找到的页面是否是操作main页。