IViewEngine.FindView(ControllerContext, String, 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 specified view by using the specified controller context.
public System.Web.Mvc.ViewEngineResult FindView (System.Web.Mvc.ControllerContext controllerContext, string viewName, string masterName, bool useCache);
abstract member FindView : System.Web.Mvc.ControllerContext * string * string * bool -> System.Web.Mvc.ViewEngineResult
Public Function FindView (controllerContext As ControllerContext, viewName As String, masterName As String, useCache As Boolean) As ViewEngineResult
Parameters
- controllerContext
- ControllerContext
The controller context.
- viewName
- String
The name of the view.
- masterName
- String
The name of the master.
- useCache
- Boolean
true to specify that the view engine returns the cached view, if a cached view exists; otherwise, false.
Returns
The page view.