RazorViewEngine.FindView(ActionContext, String, Boolean) Method

Definition

Finds the view with the given viewName using view locations and information from the context.

C#
public Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult FindView (Microsoft.AspNetCore.Mvc.ActionContext context, string viewName, bool isMainPage);

Parameters

viewName
String

The name or path of the view that is rendered to the response.

isMainPage
Boolean

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

Returns

The ViewEngineResult of locating the view.

Implements

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0