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

Definition

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

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

Parameters

controllerContext
ControllerContext ControllerContext

The controller context.

partialViewName
String String

The name of the partial view.

useCache
Boolean Boolean

true to use the cached partial view.

Returns

Implements

Exceptions

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

The partialViewName parameter is null or empty.

Applies to