PartialViewResult.FindView Method (ControllerContext)
Returns the ViewEngineResult object that is used to render the view.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
protected override ViewEngineResult FindView(
ControllerContext context
)
protected:
virtual ViewEngineResult^ FindView(
ControllerContext^ context
) override
override FindView :
context:ControllerContext -> ViewEngineResult
Protected Overrides Function FindView (
context As ControllerContext
) As ViewEngineResult
Parameters
context
Type: System.Web.Mvc.ControllerContextThe controller context.
Return Value
Type: System.Web.Mvc.ViewEngineResult
The view engine result.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | An error occurred while the method was attempting to find the view. |
See Also
PartialViewResult Class
System.Web.Mvc Namespace
Return to top