ViewViewComponentResult Class

Definition

A IViewComponentResult that renders a partial view when executed.

C#
public class ViewViewComponentResult : Microsoft.AspNetCore.Mvc.IViewComponentResult
Inheritance
ViewViewComponentResult
Implements

Constructors

Properties

TempData

Gets or sets the ITempDataDictionary instance.

ViewData

Gets or sets the ViewDataDictionary.

ViewEngine

Gets or sets the ViewEngine.

ViewName

Gets or sets the view name.

Methods

Execute(ViewComponentContext)

Locates and renders a view specified by ViewName. If ViewName is null, then the view name searched for is"Default".

ExecuteAsync(ViewComponentContext)

Locates and renders a view specified by ViewName. If ViewName is null, then the view name searched for is"Default".

Applies to

Tuote Versiot
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0