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

Definition

Finds the specified view by using the specified controller context and master view name.

public virtual 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
override this.FindView : System.Web.Mvc.ControllerContext * string * string * bool -> System.Web.Mvc.ViewEngineResult

Parameters

controllerContext
ControllerContext ControllerContext

The controller context.

viewName
String String

The name of the view.

masterName
String String

The name of the master view.

useCache
Boolean Boolean

true to use the cached view.

Returns

Implements

Exceptions

The controllerContext parameter is null (Nothing in Visual Basic).

The viewName parameter is null or empty.

Applies to