IViewEngine.FindView(ControllerContext, String, String, Boolean) Method

Definition

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.

Applies to