AcceptedAtActionResult Class

Definition

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

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

Constructors

AcceptedAtActionResult(String, String, Object, Object)

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

Properties

ActionName

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

ContentTypes

Gets or sets the MediaTypeCollection.

(Inherited from ObjectResult)
ControllerName

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

DeclaredType

Gets or sets the declared type.

(Inherited from ObjectResult)
Formatters

The collection of IOutputFormatter.

(Inherited from ObjectResult)
RouteValues

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

StatusCode

Gets or sets the HTTP status code.

(Inherited from ObjectResult)
UrlHelper

Gets or sets the IUrlHelper used to generate URLs.

Value

The object result.

(Inherited from ObjectResult)

Methods

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)

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

(Inherited from ObjectResult)
OnFormatting(ActionContext)

This method is called before the formatter writes to the output stream.

Applies to