IActionResult Interface

Defines a contract that represents the result of an action method.

Namespace
Microsoft.AspNetCore.Mvc
Assemblies
  • Microsoft.AspNetCore.Mvc.Abstractions

Syntax

public interface IActionResult
interface Microsoft.AspNetCore.Mvc.IActionResult

Methods

ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext)

Executes the result operation of the action method asynchronously. This method is called by MVC to process the result of an action method.

Arguments:context (Microsoft.AspNetCore.Mvc.ActionContext) – The context in which the result is executed. The context information includes information about the action that was executed and request information.
Return type:System.Threading.Tasks.Task
Returns:A task that represents the asynchronous execute operation.
Task ExecuteResultAsync(ActionContext context)