IViewComponentResult.ExecuteAsync(ViewComponentContext) Method

Definition

Asynchronously executes the result of a ViewComponent using the specified context.

public:
 System::Threading::Tasks::Task ^ ExecuteAsync(Microsoft::AspNetCore::Mvc::ViewComponents::ViewComponentContext ^ context);
public System.Threading.Tasks.Task ExecuteAsync (Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context);
abstract member ExecuteAsync : Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext -> System.Threading.Tasks.Task
Public Function ExecuteAsync (context As ViewComponentContext) As Task

Parameters

context
ViewComponentContext

The ViewComponentContext for the current component execution.

Returns

A Task that represents the asynchronous execution.

Applies to