IViewComponentResult Interface

Summary

Result type of a [Microsoft.AspNet.Mvc.ViewComponent](Microsoft.AspNet.Mvc.ViewComponent.yml).

Syntax

public interface IViewComponentResult

GitHub

View on GitHub

interface Microsoft.AspNet.Mvc.IViewComponentResult

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:
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:
Return type:

System.Threading.Tasks.Task

Returns:

A [System.Threading.Tasks.Task]() that represents the asynchronous execution.

Task ExecuteAsync(ViewComponentContext context)