IViewEngine.GetView(String, String, Boolean) 方法

定义

获取具有给定的视图 viewPath ,相对于, executingFilePath 除非 viewPath 已是绝对的。

public:
 Microsoft::AspNetCore::Mvc::ViewEngines::ViewEngineResult ^ GetView(System::String ^ executingFilePath, System::String ^ viewPath, bool isMainPage);
public Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult GetView (string executingFilePath, string viewPath, bool isMainPage);
public Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult GetView (string? executingFilePath, string viewPath, bool isMainPage);
abstract member GetView : string * string * bool -> Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult
Public Function GetView (executingFilePath As String, viewPath As String, isMainPage As Boolean) As ViewEngineResult

参数

executingFilePath
String

当前正在执行的视图的绝对路径(如果有)。

viewPath
String

视图的路径。

isMainPage
Boolean

确定所找到的页是否为操作的主页。

返回

ViewEngineResult

ViewEngineResult查找视图的。

适用于