ViewViewComponentResult.ExecuteAsync(ViewComponentContext) Method

Definition

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

C#
public System.Threading.Tasks.Task ExecuteAsync (Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context);

Parameters

context
ViewComponentContext

The ViewComponentContext for the current component execution.

Returns

A Task which will complete when view rendering is completed.

Implements

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