Share via


RazorViewEngine.CreatePartialView(ControllerContext, String) Method

Definition

Creates a partial view using the specified controller context and partial path.

protected override System.Web.Mvc.IView CreatePartialView (System.Web.Mvc.ControllerContext controllerContext, string partialPath);
override this.CreatePartialView : System.Web.Mvc.ControllerContext * string -> System.Web.Mvc.IView
Protected Overrides Function CreatePartialView (controllerContext As ControllerContext, partialPath As String) As IView

Parameters

controllerContext
ControllerContext

The controller context.

partialPath
String

The path to the partial view.

Returns

The partial view.

Applies to