CompositeViewEngine.FindView(ActionContext, String, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Finds the view with the given viewName
using view locations and information from the
context
.
public:
virtual Microsoft::AspNetCore::Mvc::ViewEngines::ViewEngineResult ^ FindView(Microsoft::AspNetCore::Mvc::ActionContext ^ context, System::String ^ viewName, bool isMainPage);
public Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult FindView (Microsoft.AspNetCore.Mvc.ActionContext context, string viewName, bool isMainPage);
abstract member FindView : Microsoft.AspNetCore.Mvc.ActionContext * string * bool -> Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult
override this.FindView : Microsoft.AspNetCore.Mvc.ActionContext * string * bool -> Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult
Public Function FindView (context As ActionContext, viewName As String, isMainPage As Boolean) As ViewEngineResult
Parameters
- context
- ActionContext
The ActionContext.
- 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.