Share via


PageBase.Partial Method

Definition

Overloads

Partial(String)

Creates a PartialViewResult by specifying the name of a partial to render.

Partial(String, Object)

Creates a PartialViewResult by specifying the name of a partial to render and the model object.

Partial(String)

Source:
PageBase.cs
Source:
PageBase.cs

Creates a PartialViewResult by specifying the name of a partial to render.

public virtual Microsoft.AspNetCore.Mvc.PartialViewResult Partial(string viewName);

Parameters

viewName
String

The partial name.

Returns

The created PartialViewResult object for the response.

Applies to

Partial(String, Object)

Source:
PageBase.cs
Source:
PageBase.cs

Creates a PartialViewResult by specifying the name of a partial to render and the model object.

public virtual Microsoft.AspNetCore.Mvc.PartialViewResult Partial(string viewName, object? model);
public virtual Microsoft.AspNetCore.Mvc.PartialViewResult Partial(string viewName, object model);

Parameters

viewName
String

The partial name.

model
Object

The model to be passed into the partial.

Returns

The created PartialViewResult object for the response.

Applies to