ActionResult Class¶
A default implementation of Microsoft.AspNetCore.Mvc.IActionResult
.
- Namespace
Microsoft.AspNetCore.Mvc
- Assemblies
- Microsoft.AspNetCore.Mvc.Core
Inheritance Hierarchy¶
System.Object
Microsoft.AspNetCore.Mvc.ActionResult
Syntax¶
public abstract class ActionResult : IActionResult
-
class
Microsoft.AspNetCore.Mvc.
ActionResult
Methods¶
-
ExecuteResult
(Microsoft.AspNetCore.Mvc.ActionContext)¶ Executes the result operation of the action method synchronously. 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. public virtual void ExecuteResult(ActionContext context)
-
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. The default implementation of this method calls the
Microsoft.AspNetCore.Mvc.ActionResult.ExecuteResult(Microsoft.AspNetCore.Mvc.ActionContext)
method and returns a completed task.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. public virtual Task ExecuteResultAsync(ActionContext context)
-