CompositeViewEngine.GetView(String, String, Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得具有指定 viewPath
之 的檢視, executingFilePath
除非 viewPath
已經是絕對的 。
public:
virtual 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
override this.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尋找檢視的 。