VirtualPathProviderViewEngine.FindPartialView Method
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 partial view by using the specified controller context.
C#
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
Public Overridable Function FindPartialView (controllerContext As ControllerContext, partialViewName As String, useCache As Boolean) As ViewEngineResult
- controllerContext
- ControllerContext
The controller context.
- partialViewName
- String
The name of the partial view.
- useCache
- Boolean
true to use the cached partial view.
The partial view.
The controllerContext
parameter is null (Nothing in Visual Basic).
The partialViewName
parameter is null or empty.
Product | Versions |
---|---|
ASP.NET MVC | 5.2 |