IViewEngine.GetView(String, String, Boolean) Method

Definition

Gets the view with the given viewPath, relative to executingFilePath unless viewPath is already absolute.

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

Parameters

executingFilePath
String

The absolute path to the currently-executing view, if any.

viewPath
String

The path to the view.

isMainPage
Boolean

Determines if the page being found is the main page for an action.

Returns

The ViewEngineResult of locating the view.

Applies to