IViewComponentResult.ExecuteAsync(ViewComponentContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.