Share via


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".

public:
 virtual 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
override this.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 which will complete when view rendering is completed.

Implements

Applies to