AcceptedResult AcceptedResult AcceptedResult Class

Definition

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

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

Constructors

AcceptedResult() AcceptedResult() AcceptedResult()

Initializes a new instance of the AcceptedResult class with the values provided.

AcceptedResult(String, Object) AcceptedResult(String, Object) AcceptedResult(String, Object)

Initializes a new instance of the AcceptedResult class with the values provided.

AcceptedResult(Uri, Object) AcceptedResult(Uri, Object) AcceptedResult(Uri, Object)

Initializes a new instance of the AcceptedResult class with the values provided.

Properties

ContentTypes ContentTypes ContentTypes Inherited from ObjectResult
DeclaredType DeclaredType DeclaredType Inherited from ObjectResult
Formatters Formatters Formatters Inherited from ObjectResult
Location Location Location

Gets or sets the location at which the status of the requested content can be monitored.

StatusCode StatusCode StatusCode

Gets or sets the HTTP status code.

(Inherited from ObjectResult)
Value Value Value Inherited from ObjectResult

Methods

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) Inherited from ObjectResult
OnFormatting(ActionContext) OnFormatting(ActionContext) OnFormatting(ActionContext)

Applies to