Controller.PartialView Controller.PartialView Controller.PartialView Method

Definition

Overloads

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

Creates a PartialViewResult object by specifying a viewName.

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

Creates a PartialViewResult object by specifying a viewName and the model to be rendered by the partial view.

PartialView() PartialView() PartialView()

Creates a PartialViewResult object that renders a partial view to the response.

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

Creates a PartialViewResult object by specifying a model to be rendered by the partial view.

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

Creates a PartialViewResult object by specifying a viewName.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PartialViewResult PartialView (string viewName);
abstract member PartialView : string -> Microsoft.AspNetCore.Mvc.PartialViewResult
override this.PartialView : string -> Microsoft.AspNetCore.Mvc.PartialViewResult
Public Overridable Function PartialView (viewName As String) As PartialViewResult

Parameters

viewName
String String String

The name or path of the partial view that is rendered to the response.

Returns

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

Creates a PartialViewResult object by specifying a viewName and the model to be rendered by the partial view.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PartialViewResult PartialView (string viewName, object model);
abstract member PartialView : string * obj -> Microsoft.AspNetCore.Mvc.PartialViewResult
override this.PartialView : string * obj -> Microsoft.AspNetCore.Mvc.PartialViewResult
Public Overridable Function PartialView (viewName As String, model As Object) As PartialViewResult

Parameters

viewName
String String String

The name or path of the partial view that is rendered to the response.

model
Object Object Object

The model that is rendered by the partial view.

Returns

PartialView() PartialView() PartialView()

Creates a PartialViewResult object that renders a partial view to the response.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PartialViewResult PartialView ();
abstract member PartialView : unit -> Microsoft.AspNetCore.Mvc.PartialViewResult
override this.PartialView : unit -> Microsoft.AspNetCore.Mvc.PartialViewResult
Public Overridable Function PartialView () As PartialViewResult

Returns

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

Creates a PartialViewResult object by specifying a model to be rendered by the partial view.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PartialViewResult PartialView (object model);
abstract member PartialView : obj -> Microsoft.AspNetCore.Mvc.PartialViewResult
override this.PartialView : obj -> Microsoft.AspNetCore.Mvc.PartialViewResult
Public Overridable Function PartialView (model As Object) As PartialViewResult

Parameters

model
Object Object Object

The model that is rendered by the partial view.

Returns

Applies to