Compartilhar via


ControllerBase.UnprocessableEntity Método

Definição

Sobrecargas

UnprocessableEntity()

Origem:
ControllerBase.cs
Origem:
ControllerBase.cs
Origem:
ControllerBase.cs

Cria um UnprocessableEntityResult que produz uma Status422UnprocessableEntity resposta.

public:
 virtual Microsoft::AspNetCore::Mvc::UnprocessableEntityResult ^ UnprocessableEntity();
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.UnprocessableEntityResult UnprocessableEntity();
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member UnprocessableEntity : unit -> Microsoft.AspNetCore.Mvc.UnprocessableEntityResult
override this.UnprocessableEntity : unit -> Microsoft.AspNetCore.Mvc.UnprocessableEntityResult
Public Overridable Function UnprocessableEntity () As UnprocessableEntityResult

Retornos

O criado UnprocessableEntityResult para a resposta.

Atributos

Aplica-se a

UnprocessableEntity(ModelStateDictionary)

Origem:
ControllerBase.cs
Origem:
ControllerBase.cs
Origem:
ControllerBase.cs
public:
 virtual Microsoft::AspNetCore::Mvc::UnprocessableEntityObjectResult ^ UnprocessableEntity(Microsoft::AspNetCore::Mvc::ModelBinding::ModelStateDictionary ^ modelState);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.UnprocessableEntityObjectResult UnprocessableEntity(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member UnprocessableEntity : Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.UnprocessableEntityObjectResult
override this.UnprocessableEntity : Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.UnprocessableEntityObjectResult
Public Overridable Function UnprocessableEntity (modelState As ModelStateDictionary) As UnprocessableEntityObjectResult

Parâmetros

modelState
ModelStateDictionary

Os ModelStateDictionary erros que contêm a serem retornados ao cliente.

Retornos

O criado UnprocessableEntityObjectResult para a resposta.

Atributos

Aplica-se a

UnprocessableEntity(Object)

Origem:
ControllerBase.cs
Origem:
ControllerBase.cs
Origem:
ControllerBase.cs
public:
 virtual Microsoft::AspNetCore::Mvc::UnprocessableEntityObjectResult ^ UnprocessableEntity(System::Object ^ error);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.UnprocessableEntityObjectResult UnprocessableEntity(object? error);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.UnprocessableEntityObjectResult UnprocessableEntity(object error);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member UnprocessableEntity : obj -> Microsoft.AspNetCore.Mvc.UnprocessableEntityObjectResult
override this.UnprocessableEntity : obj -> Microsoft.AspNetCore.Mvc.UnprocessableEntityObjectResult
Public Overridable Function UnprocessableEntity (error As Object) As UnprocessableEntityObjectResult

Parâmetros

error
Object

Um objeto de erro a ser retornado ao cliente.

Retornos

O criado UnprocessableEntityObjectResult para a resposta.

Atributos

Aplica-se a