Dela via


UnprocessableEntityObjectResult Class

Definition

An ObjectResult that when executed will produce a Unprocessable Entity (422) response.

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

Constructors

UnprocessableEntityObjectResult(ModelStateDictionary)

Creates a new UnprocessableEntityObjectResult instance.

UnprocessableEntityObjectResult(Object)

Creates a new UnprocessableEntityObjectResult instance.

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

(Inherited from ObjectResult)

Applies to