Controller.PartialView Controller.PartialView Controller.PartialView Method

Definition

Overloads

PartialView(String, Object) PartialView(String, Object) PartialView(String, Object)

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

PartialView(String) PartialView(String) PartialView(String)

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

PartialView(Object) PartialView(Object) PartialView(Object)

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

PartialView() PartialView() PartialView()

Creates a PartialViewResult object that renders a partial view.

PartialView(String, Object) PartialView(String, Object) 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 String String

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

model
Object Object Object

The model that is rendered by the partial view

Returns

A partial-view result object.

PartialView(String) PartialView(String) 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 String String

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

Returns

A partial-view result object.

PartialView(Object) PartialView(Object) 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 Object Object

The model that is rendered by the partial view

Returns

A partial-view result object.

PartialView() PartialView() 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