Share via


AcceptedResult Class

Definition

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

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

Constructors

AcceptedResult()

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

AcceptedResult(String, Object)

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

AcceptedResult(Uri, Object)

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

Properties

ContentTypes

Gets or sets the MediaTypeCollection.

(Inherited from ObjectResult)
DeclaredType

Gets or sets the declared type.

(Inherited from ObjectResult)
Formatters

The collection of IOutputFormatter.

(Inherited from ObjectResult)
Location

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

StatusCode

Gets or sets the HTTP status code.

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