AcceptedAtActionResult AcceptedAtActionResult AcceptedAtActionResult AcceptedAtActionResult Class

Definition

An ActionResult that returns a Accepted (202) response with a Location header.

public ref class AcceptedAtActionResult : Microsoft::AspNetCore::Mvc::ObjectResult
[Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(202)]
public class AcceptedAtActionResult : Microsoft.AspNetCore.Mvc.ObjectResult
type AcceptedAtActionResult = class
    inherit ObjectResult
Public Class AcceptedAtActionResult
Inherits ObjectResult
Inheritance
AcceptedAtActionResultAcceptedAtActionResultAcceptedAtActionResultAcceptedAtActionResult
Attributes

Constructors

AcceptedAtActionResult(String, String, Object, Object) AcceptedAtActionResult(String, String, Object, Object) AcceptedAtActionResult(String, String, Object, Object) AcceptedAtActionResult(String, String, Object, Object)

Initializes a new instance of the AcceptedAtActionResult with the values provided.

Properties

ActionName ActionName ActionName ActionName

Gets or sets the name of the action to use for generating the URL.

ContentTypes ContentTypes ContentTypes ContentTypes Inherited from ObjectResult
ControllerName ControllerName ControllerName ControllerName

Gets or sets the name of the controller to use for generating the URL.

DeclaredType DeclaredType DeclaredType DeclaredType Inherited from ObjectResult
Formatters Formatters Formatters Formatters Inherited from ObjectResult
RouteValues RouteValues RouteValues RouteValues

Gets or sets the route data to use for generating the URL.

StatusCode StatusCode StatusCode StatusCode

Gets or sets the HTTP status code.

(Inherited from ObjectResult)
UrlHelper UrlHelper UrlHelper UrlHelper

Gets or sets the IUrlHelper used to generate URLs.

Value Value Value Value Inherited from ObjectResult

Methods

ExecuteResult(ActionContext) ExecuteResult(ActionContext) ExecuteResult(ActionContext) ExecuteResult(ActionContext)

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

(Inherited from ActionResult)
ExecuteResultAsync(ActionContext) ExecuteResultAsync(ActionContext) ExecuteResultAsync(ActionContext) ExecuteResultAsync(ActionContext) Inherited from ObjectResult
OnFormatting(ActionContext) OnFormatting(ActionContext) OnFormatting(ActionContext) OnFormatting(ActionContext)

Applies to