CompositeViewEngine.FindView(ActionContext, String, Boolean) 方法

定义

使用 中的视图位置和信息查找具有给定 viewNamecontext视图。

public:
 virtual Microsoft::AspNetCore::Mvc::ViewEngines::ViewEngineResult ^ FindView(Microsoft::AspNetCore::Mvc::ActionContext ^ context, System::String ^ viewName, bool isMainPage);
public Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult FindView (Microsoft.AspNetCore.Mvc.ActionContext context, string viewName, bool isMainPage);
abstract member FindView : Microsoft.AspNetCore.Mvc.ActionContext * string * bool -> Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult
override this.FindView : Microsoft.AspNetCore.Mvc.ActionContext * string * bool -> Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult
Public Function FindView (context As ActionContext, viewName As String, isMainPage As Boolean) As ViewEngineResult

参数

viewName
String

呈现到响应的视图的名称或路径。

isMainPage
Boolean

确定找到的页面是否是操作main页。

返回

查找 ViewEngineResult 视图的 。

实现

适用于