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);
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尋找視圖的。

適用於