ViewEngineCollection.FindPartialView(ControllerContext, String) Method
Definition
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.
public virtual System.Web.Mvc.ViewEngineResult FindPartialView (System.Web.Mvc.ControllerContext controllerContext, string partialViewName);
abstract member FindPartialView : System.Web.Mvc.ControllerContext * string -> System.Web.Mvc.ViewEngineResult
override this.FindPartialView : System.Web.Mvc.ControllerContext * string -> System.Web.Mvc.ViewEngineResult
Public Overridable Function FindPartialView (controllerContext As ControllerContext, partialViewName As String) As ViewEngineResult
Parameters
- controllerContext
- ControllerContext
The controller context.
- partialViewName
- String
The name of the partial view.
Returns
The partial view.
Exceptions
The controllerContext
parameter is null.
The partialViewName
parameter is null or empty.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for