Share via


Controller.PartialView Method

Definition

Overloads

PartialView(String, Object)

Creates a PartialViewResult object that renders a partial view, by using the specified view name and model.

PartialView(String)

Creates a PartialViewResult object that renders a partial view, by using the specified view name.

PartialView(Object)

Creates a PartialViewResult object that renders a partial view, by using the specified model.

PartialView()

Creates a PartialViewResult object that renders a partial view.

PartialView(String, Object)

Creates a PartialViewResult object that renders a partial view, by using the specified view name and model.

protected internal virtual System.Web.Mvc.PartialViewResult PartialView(string viewName, object model);

Parameters

viewName
String

The name of the view that is rendered to the response.

model
Object

The model that is rendered by the partial view

Returns

A partial-view result object.

Applies to

PartialView(String)

Creates a PartialViewResult object that renders a partial view, by using the specified view name.

protected internal System.Web.Mvc.PartialViewResult PartialView(string viewName);

Parameters

viewName
String

The name of the view that is rendered to the response.

Returns

A partial-view result object.

Applies to

PartialView(Object)

Creates a PartialViewResult object that renders a partial view, by using the specified model.

protected internal System.Web.Mvc.PartialViewResult PartialView(object model);

Parameters

model
Object

The model that is rendered by the partial view

Returns

A partial-view result object.

Applies to

PartialView()

Creates a PartialViewResult object that renders a partial view.

protected internal System.Web.Mvc.PartialViewResult PartialView();

Returns

A partial-view result object.

Applies to