Share via


IViewEngine.FindPartialView(ControllerContext, String, Boolean) Method

Definition

Finds the specified partial view by using the specified controller context.

public System.Web.Mvc.ViewEngineResult FindPartialView (System.Web.Mvc.ControllerContext controllerContext, string partialViewName, bool useCache);
abstract member FindPartialView : System.Web.Mvc.ControllerContext * string * bool -> System.Web.Mvc.ViewEngineResult
Public Function FindPartialView (controllerContext As ControllerContext, partialViewName As String, useCache As Boolean) As ViewEngineResult

Parameters

controllerContext
ControllerContext

The controller context.

partialViewName
String

The name of the partial view.

useCache
Boolean

true to specify that the view engine returns the cached view, if a cached view exists; otherwise, false.

Returns

The partial view.

Applies to