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);
abstract member PartialView : string * obj -> System.Web.Mvc.PartialViewResult
override this.PartialView : string * obj -> System.Web.Mvc.PartialViewResult
Protected Friend Overridable Function PartialView (viewName As String, model As Object) As PartialViewResult

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);
member this.PartialView : string -> System.Web.Mvc.PartialViewResult
Protected Friend Function PartialView (viewName As String) As PartialViewResult

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);
member this.PartialView : obj -> System.Web.Mvc.PartialViewResult
Protected Friend Function PartialView (model As Object) As PartialViewResult

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 ();
member this.PartialView : unit -> System.Web.Mvc.PartialViewResult
Protected Friend Function PartialView () As PartialViewResult

Returns

A partial-view result object.

Applies to