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)

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

public:
 virtual Microsoft::AspNetCore::Mvc::PartialViewResult ^ Partial(System::String ^ viewName);
public virtual Microsoft.AspNetCore.Mvc.PartialViewResult Partial (string viewName);
abstract member Partial : string -> Microsoft.AspNetCore.Mvc.PartialViewResult
override this.Partial : string -> Microsoft.AspNetCore.Mvc.PartialViewResult
Public Overridable Function Partial (viewName As String) As PartialViewResult

Parameters

viewName
String

The partial name.

Returns

PartialViewResult

The created PartialViewResult object for the response.

Applies to

Partial(String, Object)

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

public:
 virtual Microsoft::AspNetCore::Mvc::PartialViewResult ^ Partial(System::String ^ viewName, System::Object ^ model);
public virtual Microsoft.AspNetCore.Mvc.PartialViewResult Partial (string viewName, object model);
public virtual Microsoft.AspNetCore.Mvc.PartialViewResult Partial (string viewName, object? model);
abstract member Partial : string * obj -> Microsoft.AspNetCore.Mvc.PartialViewResult
override this.Partial : string * obj -> Microsoft.AspNetCore.Mvc.PartialViewResult
Public Overridable Function Partial (viewName As String, model As Object) As PartialViewResult

Parameters

viewName
String

The partial name.

model
Object

The model to be passed into the partial.

Returns

PartialViewResult

The created PartialViewResult object for the response.

Applies to