IViewComponentInvoker Interface¶
Specifies the contract for execution of a view component.
- Namespace
Microsoft.AspNetCore.Mvc.ViewComponents- Assemblies
- Microsoft.AspNetCore.Mvc.ViewFeatures
Syntax¶
public interface IViewComponentInvoker
-
interface
Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentInvoker
Methods¶
-
InvokeAsync(Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext)¶ Executes the view component specified by
Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext.ViewComponentDescriptorof <em>context</em> and writes the result toMicrosoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext.Writer.Arguments: context (Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext) – The Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext.Return type: System.Threading.Tasks.Task Returns: A System.Threading.Tasks.Taskthat represents the asynchronous operation of execution.Task InvokeAsync(ViewComponentContext context)
-