IViewComponentResult Interface¶
Summary¶
Result type of a [Microsoft.AspNet.Mvc.ViewComponent](Microsoft.AspNet.Mvc.ViewComponent.yml).
Methods¶
-
Execute
(Microsoft.AspNet.Mvc.ViewComponentContext)¶ Executes the result of a [Microsoft.AspNet.Mvc.ViewComponent](Microsoft.AspNet.Mvc.ViewComponent.yml) using the specified <paramref name=”context” />.
Arguments: - context (Microsoft.AspNet.Mvc.ViewComponentContext) – The [Microsoft.AspNet.Mvc.ViewComponentContext](Microsoft.AspNet.Mvc.ViewComponentContext.yml) for the current component execution.
void Execute(ViewComponentContext context)
-
ExecuteAsync
(Microsoft.AspNet.Mvc.ViewComponentContext)¶ Asynchronously executes the result of a [Microsoft.AspNet.Mvc.ViewComponent](Microsoft.AspNet.Mvc.ViewComponent.yml) using the specified
<paramref name=”context” />.
Arguments: - context (Microsoft.AspNet.Mvc.ViewComponentContext) – The [Microsoft.AspNet.Mvc.ViewComponentContext](Microsoft.AspNet.Mvc.ViewComponentContext.yml) for the current component execution.
Return type: System.Threading.Tasks.Task
Returns: A [System.Threading.Tasks.Task]() that represents the asynchronous execution.
Task ExecuteAsync(ViewComponentContext context)
-