BadRequestErrorMessageResult Class

Definition

An action result that returns a Status400BadRequest response and performs content negotiation on an HttpError with a Message.

public class BadRequestErrorMessageResult : Microsoft.AspNetCore.Mvc.ObjectResult
type BadRequestErrorMessageResult = class
    inherit ObjectResult
Public Class BadRequestErrorMessageResult
Inherits ObjectResult
Inheritance
BadRequestErrorMessageResult

Constructors

BadRequestErrorMessageResult(String)

Initializes a new instance of the BadRequestErrorMessageResult class.

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)
Message

Gets the error message.

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. The default implementation of this method calls the ExecuteResult(ActionContext) method and returns a completed task.

OnFormatting(ActionContext)

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

(Inherited from ObjectResult)

Applies to