Sdílet prostřednictvím


IViewEngine.GetView(String, String, Boolean) Metoda

Definice

Získá zobrazení s danou viewPath, relativní k executingFilePath , pokud viewPath je již absolutní.

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

Parametry

executingFilePath
String

Absolutní cesta k aktuálně prováděnému zobrazení, pokud existuje.

viewPath
String

Cesta k zobrazení.

isMainPage
Boolean

Určuje, jestli je nalezená stránka hlavní stránkou akce.

Návraty

Umístění ViewEngineResult zobrazení.

Platí pro