Share via


UnprocessableEntityResult Class

Definition

A StatusCodeResult that when executed will produce a Unprocessable Entity (422) response.

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

Constructors

UnprocessableEntityResult()

Creates a new UnprocessableEntityResult instance.

Properties

StatusCode

Gets the HTTP status code.

(Inherited from StatusCodeResult)

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 StatusCodeResult)
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.

(Inherited from ActionResult)

Explicit Interface Implementations

IStatusCodeActionResult.StatusCode (Inherited from StatusCodeResult)

Applies to