Compartir a través de


ControllerBase.UnprocessableEntity Método

Definición

Sobrecargas

UnprocessableEntity()

Crea un objeto UnprocessableEntityResult que genera una Status422UnprocessableEntity respuesta.

UnprocessableEntity(ModelStateDictionary)

Crea un objeto UnprocessableEntityObjectResult que genera una Status422UnprocessableEntity respuesta.

UnprocessableEntity(Object)

Crea un objeto UnprocessableEntityObjectResult que genera una Status422UnprocessableEntity respuesta.

UnprocessableEntity()

Source:
ControllerBase.cs
Source:
ControllerBase.cs
Source:
ControllerBase.cs

Crea un objeto UnprocessableEntityResult que genera una Status422UnprocessableEntity respuesta.

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

Devoluciones

objeto creado UnprocessableEntityResult para la respuesta.

Atributos

Se aplica a

UnprocessableEntity(ModelStateDictionary)

Source:
ControllerBase.cs
Source:
ControllerBase.cs
Source:
ControllerBase.cs

Crea un objeto UnprocessableEntityObjectResult que genera una Status422UnprocessableEntity respuesta.

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

Que ModelStateDictionary contiene los errores que se van a devolver al cliente.

Devoluciones

objeto creado UnprocessableEntityObjectResult para la respuesta.

Atributos

Se aplica a

UnprocessableEntity(Object)

Source:
ControllerBase.cs
Source:
ControllerBase.cs
Source:
ControllerBase.cs

Crea un objeto UnprocessableEntityObjectResult que genera una Status422UnprocessableEntity respuesta.

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

Objeto de error que se va a devolver al cliente.

Devoluciones

objeto creado UnprocessableEntityObjectResult para la respuesta.

Atributos

Se aplica a